Forum Discussion

curious7's avatar
curious7
Brass Contributor
Jun 02, 2026

Restoring a user to Azure API Management instance who had registered using Azure B2C

I am trying to restore a Azure API Management user account that I had backed up and has identity.provider and intentity.id backed up. When I restore this user using the ARM endpoint using URI similar to one below, the user gets restored but has both "AadB2c" and "Basic" as the auth type:-

 

"https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroup}/providers/Microsoft.ApiManagement/service/${apimName}/users/${userId}?api-version=2024-05-01"

 

Why is Basic being added as the value because the backup had "AadB2c" as the Auth Type?

 

And is there a way to avoid that and only have "AadB2C" as the Auth type.

1 Reply

  • Seems because Azure API Management automatically generates a password for restored users unless explicitly removed. This results in the user having both Basic and AadB2C authentication methods. To avoid Basic auth, you must restore the user without a password property so only the external identity (AadB2C) remains.learn.microsoft.com/en-us/answers/questions/5909027/restoring-a-user-to-azure-api-management-instance