I used Angular app and nodeApi for backend, for user authentication i used Azure ADB2C. i created custom flow , i created both registrations for front and back end apps. Its perfectly geting data using token. i added user in User Administrator. but after i added still issue with creating user
Thanks in Advance
Loading

Mohammad HussainPosted Aug 28, 2023, 7:16 AM
The error message "Insufficient privileges to complete" typically indicates that the user account or application trying to perform the action does not have the necessary permissions to do so. Since you're using Azure AD B2C for user authentication and authorization, there could be several reasons for this issue. Here are some steps you can take to troubleshoot and resolve the problem:
Check User Administrator Role: Make sure that the user account you're using for authentication has been assigned the "User Administrator" role in Azure AD B2C. This role should have sufficient privileges to manage users.
Check Application Permissions: Ensure that the application you're using to perform user creation has been granted the necessary permissions in the Azure AD B2C settings. Check the application's registration settings to make sure it has the appropriate permissions to create users.
Token Scopes and Claims: Double-check the token scopes and claims you're requesting during authentication. Make sure that the necessary claims and scopes are included in the token to enable the application to perform user creation.
Custom Policies Configuration: Since you mentioned that you created a custom flow and custom policies, review the custom policies configuration to ensure that the necessary permissions and roles are correctly configured.
Logging and Monitoring: Enable detailed logging in your Angular app and Node.js backend to capture any error messages or issues related to user creation. Azure AD B2C also provides logs that can help you identify the cause of the problem.
Azure AD B2C Diagnostics: Utilize the diagnostics and troubleshooting tools provided by Azure AD B2C. These tools can help you identify configuration issues and provide recommendations for resolving them.
Azure Support: If you've tried the above steps and are still facing issues, consider reaching out to Azure Support for assistance. They can provide more specific guidance based on your configuration and setup.
Testing with Different Users and Roles: Test user creation with different user accounts that have different roles assigned. This can help you determine if the issue is specific to a particular user or role.
Check Error Messages: If there are any specific error messages provided along with the "Insufficient privileges to complete" message, those messages could provide additional clues about what's going wrong.