# When connected to Azure AD for authentication is user data updated?

**URL:** <https://community.appfarm.io/t/when-connected-to-azure-ad-for-authentication-is-user-data-updated/263>\
**Category:** Ask the community\
**Tags:** login\
**Created:** [February 13, 2023, 12:05pm UTC](https://community.appfarm.io/t/when-connected-to-azure-ad-for-authentication-is-user-data-updated/263 "2023-02-13T12:05:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![houman](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/houman/32/107_2.png) [@houman](https://community.appfarm.io/u/houman)\
**Post date:** [February 13, 2023, 12:05pm UTC](https://community.appfarm.io/t/when-connected-to-azure-ad-for-authentication-is-user-data-updated/263/1 "2023-02-13T12:05:13Z")

</div>

Is user data only updated the first time when using Azure AD or will ex. first name amd last name be changed for later logins as well?

Basically the question is will the user in Appfarm be updated when Azure AD is updated when a new user login is performed, or is the value upon creation never changed unless we build a MS Graph api to update it or so?

---

<div class="post-metadata">

**Author:** ![Ole](https://dub1.discourse-cdn.com/flex013/user_avatar/community.appfarm.io/ole/32/60_2.png) [@Ole](https://community.appfarm.io/u/Ole)\
**Post date:** [February 13, 2023, 4:45pm UTC](https://community.appfarm.io/t/when-connected-to-azure-ad-for-authentication-is-user-data-updated/263/2 "2023-02-13T16:45:46Z")

</div>

The claims `given_name` and `family_name` provided in the id-token are updated on every successful login that hits the third-party provider. Depending on the requirement for update frequency, you would have to factor in the session lifetime in Appfarm.
