# Custom Identity Provider force updates user info even if the sync-mode is set to "import"

**URL:** <https://forum.keycloak.org/t/custom-identity-provider-force-updates-user-info-even-if-the-sync-mode-is-set-to-import/25311>\
**Category:** Miscellanaeous\
**Created:** [March 29, 2024, 1:01pm UTC](https://forum.keycloak.org/t/custom-identity-provider-force-updates-user-info-even-if-the-sync-mode-is-set-to-import/25311 "2024-03-29T13:01:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![clyce](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/clyce/32/10113_2.png) [@clyce](https://forum.keycloak.org/u/clyce)\
**Post date:** [March 29, 2024, 1:01pm UTC](https://forum.keycloak.org/t/custom-identity-provider-force-updates-user-info-even-if-the-sync-mode-is-set-to-import/25311/1 "2024-03-29T13:01:20Z")

</div>

I am using custom identity provider with `updateBrokerUser` overrided as:

 ![image](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/8/894341a66c11fac7bdc0c652b85d7d2acb0cce68.png)  
And sync-mode set to “import”.

But wierdly for a user that has been registered via the broker, after they mannually updated their account information (e.g: first name, last name), their information get reset to sync-with the social provider information upon the next login.

To my understanding this should only happen when the “sync-mode” is set to “force”…  
May I have the information about what might be the reason of the force reset?  
And what else information should I provide

---

<div class="post-metadata">

**Author:** ![sirishkumar](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/sirishkumar/32/6459_2.png) [@sirishkumar](https://forum.keycloak.org/u/sirishkumar)\
**Post date:** [June 24, 2024, 12:32pm UTC](https://forum.keycloak.org/t/custom-identity-provider-force-updates-user-info-even-if-the-sync-mode-is-set-to-import/25311/2 "2024-06-24T12:32:49Z")

</div>

I am also facing the similar issue with keycloak version 22.0.5
