Start a new topic
Answered

As admin, can I set email verification status to confirmed for my user?

As an admin logged in with master secret, can I set email verification status to confirmed for my user, if email verification for users is enabled and required? 


Best Answer

My apologies Daniel, when I tried yesterday, I was viewing the data in the console logged in as the user and not with master credentials. That's why it worked for me.


I tried this with master credentials in the console > users and also through API console of Kinvey. I got the same results as you - changes are not saved.


That means, email verification status cannot be changed for a user with master credentials. The only related setting to this is in console > users > settings where you can change "Always allow access to users created before" time. This still cannot be used to verify one single user's email.



Regards,

Wani






Hi Daniel,


You can do this by editing metadata values stored in _kmd field in Kinvey console itself.


After confirmation, _kmd field looks like this:

 

{
  "lmt": "2016-06-20T10:22:52.842Z",
  "ect": "2016-06-20T10:22:52.842Z",
  "emailVerification": {
    "status": "confirmed",
    "lastStateChangeAt": "2016-06-20T10:22:52.948Z",
    "lastConfirmedAt": "2016-06-20T10:22:52.948Z",
    "emailAddress": "<users-registered-email-address>"
  }
}

 


Regards,

Wani

Kinvey Support

I've tried before bothering you :), but it seems I can not edit that field, my changes are reverted.

Answer

My apologies Daniel, when I tried yesterday, I was viewing the data in the console logged in as the user and not with master credentials. That's why it worked for me.


I tried this with master credentials in the console > users and also through API console of Kinvey. I got the same results as you - changes are not saved.


That means, email verification status cannot be changed for a user with master credentials. The only related setting to this is in console > users > settings where you can change "Always allow access to users created before" time. This still cannot be used to verify one single user's email.



Regards,

Wani






1 person likes this
Login or Signup to post a comment