This application will allow you to connect to your Azure AD B2C tenant then view all the B2C users then view and edit their properties including extension attributes and custom properties.
This guide outlines the necessary steps and processes to follow in order to successfully set up your account for the User Admin application. If you encounter any issues or need support, please reach out at clint@parkasoftware.com.
Before you can successfully utilize the User Admin features, ensure that you have the following prerequisites:
- Access to an Azure B2C subscription with administrative rights or the appropriate rights to configure the steps below.
- Created and access to a valid Azure B2C tenant.
- Created a new app registration within the tenant for this software.
- Recorded client id, client secret, and tenant id.
- Basic understanding of Azure B2C user management.
You will need to register a new app in your Azure B2C tenant for this application to function properly. Perform the following steps:
- Sign into the Azure portal and navigate to the Azure AD B2C service.
- Select App registrations and then click on New registration.
- Provide a name for your application and select the appropriate supported account types.
- Click on Register to create the new app registration.
- Record the client id of the newly created app. You will need this for the User Admin to access your B2C tenant.
After registering the app in Azure B2C, follow these steps to obtain the Tenant Id and Client Secret:
- Note down the Application or Client Id from the newly registered app; this serves as the Client ID for the User Admin app.
- Navigate into the Certificates & secrets section, click New client secret. Give it a name and select the expiration time frame. Click Add and note down the generated secret value.
- Obtain the Azure B2C Tenant Id:
Ensure that your newly created app has the following delegated Graph API permissions. These permissions can be set in the API permissions section of your app registration in the Azure portal.
- From your newly created app, select API permissions.
- Click the Add a permission button.
- Within the Request API permissions --> Microsoft APIs screen, click the Microsoft Graph API button.
- Then click Application permissions.
- A Select permissions section will appear. Search and select the following permissions:
- User.ReadWrite.All: This permission allows the User Admin application to read and write all users’ full profiles.
- IdentityFlow.Read.All: This permission allows the application to read all identity flows.
- Applications.Read.All: This permission allows the application to read the applications in order to find the specific Azure B2C custom properties application. This application is where the custom properties and extension attributes are stored. Without this permission, the User Admin application will not be able to read custom properties or extension attributes.
Open the appsettings.json file from the root of the web project. There you will enter the client id, client secret and tenant id from the previous steps into the appropriate fields under AzureADB2C
node.
The application uses the Client Credentials OAuth flow to connect to the Azure AD B2C tenant to manage your B2C users. You can learn more about the Client Credentials OAuth flow here.
After completing these steps, you are now ready to view and modify your Azure B2C users.