# Migrate users from ADFS to Azure AD

**URL:** <https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765>\
**Category:** Get Help\
**Tags:** azure-ad-enterprise-connection, connections\
**Created:** [July 21, 2023, 8:45am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765 "2023-07-21T08:45:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![functionscope](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/functionscope/32/49126_2.png) [@functionscope](https://community.auth0.com/u/functionscope)\
**Post date:** [July 21, 2023, 8:45am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765/1 "2023-07-21T08:45:36Z")

</div>

Hi,

We have around 20 database connections in Auth0 and a couple that are ADFS. One of our ADFS customers is going to be migrating to Azure AD.

Is there an approach that will allow us to migrate users in Auth0 using ADFS to the equivalent user in Azure AD? The client has over 200 users so doing it manually is not an option. Also, waiting for the users to authenticate for the first time is also a non starter as users need their user\_metadata and app\_metadata preserving.

Any help greatly appreciated,

Lee

---

<div class="post-metadata">

**Author:** ![adamstraube](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/adamstraube/32/60502_2.png) [@adamstraube](https://community.auth0.com/u/adamstraube)\
**Post date:** [July 31, 2023, 1:56am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765/2 "2023-07-31T01:56:02Z")

</div>

Hi @functionscope

Welcome to the Auth0 community 😃

There is indeed an easy way migrate from ADFS to an Azure AD connection with the same underlying users.

What you need to do is change the **ADFS URL** setting in the connection. So you need to find the WS-Federation metadata endpoint for the Azure AD application which will be of this form:

> [https://login.microsoftonline.com/{tenant-id}/federationmetadata/2007-06/federationmetadata.xml?appid={application-id}](https://login.microsoftonline.com/%7Btenant-id%7D/federationmetadata/2007-06/federationmetadata.xml?appid=%7Bapplication-id%7D)

The **appid={application-id}** parameter is important, as it points to the specific app registration and lets Azure AD put the signing certificate configured for that application in the metadata. Both of the above id’s can be found in the application settings in Azure AD.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 31, 2023, 8:55am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765/3 "2023-07-31T08:55:37Z")

</div>

Thanks for helping on this one Adam!

---

<div class="post-metadata">

**Author:** ![functionscope](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/functionscope/32/49126_2.png) [@functionscope](https://community.auth0.com/u/functionscope)\
**Post date:** [August 7, 2023, 8:43am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765/4 "2023-08-07T08:43:26Z")

</div>

Thanks for the help everyone.

---

<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:** [August 21, 2023, 8:43am UTC](https://community.auth0.com/t/migrate-users-from-adfs-to-azure-ad/111765/5 "2023-08-21T08:43:48Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
