# User profile updates only after login when i reset multifactor for a user

**URL:** <https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565>\
**Category:** Get Help\
**Tags:** profile-update, api, multifac, profile, management-api\
**Created:** [July 18, 2017, 6:44pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565 "2017-07-18T18:44:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![ujjawal.solanki](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ujjawal.solanki](https://community.auth0.com/u/ujjawal.solanki)\
**Post date:** [July 18, 2017, 6:44pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/1 "2017-07-18T18:44:22Z")

</div>

Whenever i make management API call to reset user multifactor, I don’t get updated profile i.e multifactor present the ‘profile’ object doesn’t update. It updates only when that user logout and login again.

For example :  
user profile : {  
‘name’…,  
multifactor : ‘google-authenticator’]  
}

After resetting multifactor :  
user profile : {  
‘name’…,  
multifactor : ‘google-authenticator’]  
}

When user logout and login again:  
user profile : {  
‘name’…,  
multifactor : ]  
}

How to get real time update in user profile ???

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 18, 2017, 9:12pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/2 "2017-07-18T21:12:43Z")

</div>

Based on the information you provided I performed the following steps:

1. Created a database connection user (_User X_).
2. Configured MFA with Google Authenticator.
3. Executed a GET `/api/v2/users/{id}`request for _User X_ which returned the following data `multifactor : ]`.
4. Performed an authentication with _User X_ which included enrolling for MFA with Google Authenticator.
5. Executed a GET `/api/v2/users/{id}`request for _User X_ which returned the following data `multifactor : 'google-authenticator']`.
6. Executed a DELETE `/api/v2/users/{id}/multifactor/{provider}` request for _User X_ and for the Google Authenticator provider.
7. Executed a GET `/api/v2/users/{id}`request for _User X_ which returned the following data `multifactor : ]`.

With the above steps I was unable to reproduce the situation; the requests were performed through an interactive HTTP client application so there was some user delay between the DELETE and the next GET call, but I don’t think that would have any impact. Can you confirm if I used the same endpoints as you and if so please provide more detailed information about the process through which you can reproduce the issue, for example, if the sequence of requests is done programmatically share the relevant code that exhibits the behavior.

---

<div class="post-metadata">

**Author:** ![ujjawal.solanki](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ujjawal.solanki](https://community.auth0.com/u/ujjawal.solanki)\
**Post date:** [July 18, 2017, 9:29pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/3 "2017-07-18T21:29:39Z")

</div>

@jmangelo yes I performed exactly these steps only. Just a difference that I used /api/v2/users to get all the user …In that response, the multifactor is not updated. Anyway thanks for your support. 🙂

---

<div class="post-metadata">

**Author:** ![ujjawal.solanki](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ujjawal.solanki](https://community.auth0.com/u/ujjawal.solanki)\
**Post date:** [July 18, 2017, 9:29pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/4 "2017-07-18T21:29:39Z")

</div>

@jmangelo yes I performed exactly these steps only. Just a difference that I used /api/v2/users to get all the user …In that response, the multifactor is not updated. Anyway thanks for your support. 🙂

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [July 19, 2017, 9:20pm UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/5 "2017-07-19T21:20:09Z")

</div>

The different endpoint explains the situation, the `/users` endpoint is meant for search operations and the data available in search is subject to some indexing delay that could be the cause of the observed behaviour.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:55am UTC](https://community.auth0.com/t/user-profile-updates-only-after-login-when-i-reset-multifactor-for-a-user/7565/6 "2018-03-02T05:55:28Z")

</div>


