Hello @devopsfj !
I understand you need some guidenace to implement Access Control with Azure B2C for your Application
Here are some suggestions to start with :
- You can start by defining custom attributes in your Azure B2C directory that represent the roles or permissions you want to assign to users. For example, you can create attributes like "admin" and "user".
- Configure your application to use Azure B2C for user registration and sign-in. When users register or sign in, you can collect additional information such as their role or permission level through custom fields. For example you can add a Job Role that will define the permissions of the user
https://learn.microsoft.com/en-us/azure/active-directory-b2c/add-sign-up-and-sign-in-policy
- In your application, retrieve the user's role or permission level from the claims provided by Azure B2C during authentication. You can use this information to control what the user can see and access within your application. Implement authorization logic to enforce the appropriate access controls based on the user's role or permission level.
- Leverage Azure B2C's built-in user management APIs. These APIs enable you to programmatically create, update, and delete user accounts, as well as manage their attributes and roles. You can provide an admin interface in your application that utilizes these APIs to perform user management operations.
https://github.com/azure-ad-b2c/api-connector-samples
- RBAC is another mechanism to control Access and Permissions
https://learn.microsoft.com/en-us/azure/active-directory-b2c/roles-resource-access-control
These are standard capabilities and design considerations regarding Azure B2C Integration
You can expand to the level of your choice and provide a powerfull Registration and Access Control Mechanism with Azure B2C
More Samples :
https://learn.microsoft.com/en-us/azure/active-directory-b2c/integrate-with-app-code-samples
I hope this helps!
The answer or portions of it may have been assisted by AI Source: ChatGPT Subscription
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards