# Migration from Azure B2C to Auth0 - Remove consent popup?

**URL:** <https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307>\
**Category:** Get Help\
**Tags:** automatic-migration, user-management\
**Created:** [June 13, 2024, 2:26pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307 "2024-06-13T14:26:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danclarke-smve](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danclarke-smve/32/57893_2.png) [@danclarke-smve](https://community.auth0.com/u/danclarke-smve)\
**Post date:** [June 13, 2024, 2:26pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/1 "2024-06-13T14:26:08Z")

</div>

I’ve followed these instructions:

> **[Migrate Users from Azure](https://auth0.com/docs/users/import-and-export-users/migrate-users-from-azure)**
>
> How to migrate users from Azure to Auth0

This works - however, when the user logs into Auth0 the first time (ie. when the Auth0 user doesn’t yet exist and it federates from B2C) - the user gets a consent popup…

 ![image](https://global.discourse-cdn.com/auth0/original/3X/a/b/ab014a099d0f9af172cadb29af2566781e439f49.png)

How do I get rid of this? We want to silently migrate users over from B2C to Auth0 - this isn’t an ongoing federated identity - where one would expect a consent popup.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [June 17, 2024, 10:41am UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/2 "2024-06-17T10:41:29Z")

</div>

Hi there @danclarke-smve ,

Thanks for the context 🙂  
To help get rid of the unwanted consent screen, I have 2 questions first for you:

1. Is the client application requesting profile data access marked as a first-party application? To check it out, you can run this [Management API call](https://auth0.com/docs/api/management/v2/clients/get-clients-by-id) and look for the property: `is_first_party`.
2. Is the client application requesting profile data access running on localhost atm?

---

<div class="post-metadata">

**Author:** ![danclarke-smve](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danclarke-smve/32/57893_2.png) [@danclarke-smve](https://community.auth0.com/u/danclarke-smve)\
**Post date:** [June 17, 2024, 1:38pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/5 "2024-06-17T13:38:34Z")

</div>

Hi @marcelina.barycka,

Thanks for your reply.

1. Yes, I’ve just tried making the management API call against my frontend application client id, and it says `is_first_party` is set to true.

2. Yes, I think so. In the login script, I’m doing the same as in the article I linked to - ie… `openid {{YOUR_B2C_APP_CLIENT_ID}} offline_access profile`. However, I’ve just trying removing ‘profile’ from that list of scopes - and it still does the consent prompt saying profile access is being requested.

---

<div class="post-metadata">

**Author:** ![marcelina.barycka](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marcelina.barycka/32/56162_2.png) [@marcelina.barycka](https://community.auth0.com/u/marcelina.barycka)\
**Post date:** [June 17, 2024, 2:08pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/6 "2024-06-17T14:08:02Z")

</div>

Thank you very much for confirming @danclarke-smve 🙂

With the client application marked as _first-party_ (like yours), user consent is skipped by default when requesting user profile data.

When the client application runs on a local machine during development (like currently your _Ec…ev_ client application), this user consent cannot be skipped because localhost is unverifiable and thus untrusted (so Auth0 treats it as a third party anyway).

If you would like to read more on that - here is a [link to the doc](https://auth0.com/docs/get-started/applications/confidential-and-public-applications/user-consent-and-third-party-applications#skip-consent-for-first-party-applications).

The problem shouldn’t occur once the application is deployed.

Do you have any follow-up questions on that?

---

<div class="post-metadata">

**Author:** ![danclarke-smve](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/danclarke-smve/32/57893_2.png) [@danclarke-smve](https://community.auth0.com/u/danclarke-smve)\
**Post date:** [June 17, 2024, 2:22pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/7 "2024-06-17T14:22:43Z")

</div>

Ah perfect! That’s great news! So nothing to do then 🙂  
Thank you very much for your help with this 😊 🙏

---

<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:** [July 1, 2024, 2:23pm UTC](https://community.auth0.com/t/migration-from-azure-b2c-to-auth0-remove-consent-popup/136307/8 "2024-07-01T14:23:22Z")

</div>

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