Forum Discussion
Restoring a user to Azure API Management instance who had registered using Azure B2C
I would check the restored APIM user object first, especially the identities section.
APIM has the developer user record, and then it has the external identity link to B2C. If you recreate the user with only the normal profile fields, APIM may treat it like a local/basic developer account even though the person also exists in B2C.
The main things I would compare against a working B2C-created user are:
- the B2C identity provider is already configured on APIM before the restore
- the restored user has the same identity provider entry in identities
- the B2C object/id you are restoring still exists
- the developer portal was republished after identity provider changes
If the restored user payload matches a known good user and APIM still adds both Basic and AadB2c, I would raise a Microsoft support case with the exact PUT payload and the GET result for the user. That sounds more like APIM service behavior than a normal portal setting.
Docs that may help:
https://learn.microsoft.com/rest/api/apimanagement/user/create-or-update
https://learn.microsoft.com/azure/api-management/api-management-howto-aad-b2c
https://learn.microsoft.com/azure/api-management/api-management-howto-disaster-recovery-backup-restore