Azure AD B2C: Cannot find ‘b2c-extensions-app’ in this tenant

I was getting this error message when enable Azure AD B2C in my tenant. Maybe the extension deleted accidently. I will show you how to make it back to normal.

 

image

Recover the extensions app

If you accidentally deleted the b2c-extensions-app, you have 30 days to recover it. You can restore the app using the Graph API:

  1. Browse to https://graphexplorer.azurewebsites.net/.
  2. Log in to the site as a global administrator for the Azure AD B2C directory that you want to restore the deleted app for. This global administrator must have an email address similar to the following: username@{yourTenant}.onmicrosoft.com.
  3. Issue an HTTP GET against the URL https://graph.windows.net/myorganization/deletedApplications with api-version=1.6. This operation will list all of the applications that have been deleted within the past 30 days.

Find the application in the list where the name begins with ‘b2c-extension-app’ and copy its objectid property value.

clip_image002

  1. Issue an HTTP POST against the URL https://graph.windows.net/myorganization/deletedApplications/{OBJECTID}/restore. Replace the {OBJECTID} portion of the URL with the objectid from the previous step.

https://graph.windows.net/myorganization/deletedApplications/{556174e4-afda-4f3b-b31d-85e9433dfbe9}/restore

clip_image003

Result:

image

Next Verifying that the extensions app is present

To verify that the b2c-extensions-app is present:

  1. Inside your Azure AD B2C tenant, click on More services in the left-hand navigation menu.
  2. Search for and open App registrations.
  3. Look for an app that begins with b2c-extensions-app

Leave a Reply