I would like to add Authorization to a web API written in Asp.Net Core using Azure AD B2C. I already have the Authentication part working, and now I would like to add "Roles" to my application, like "Administrators", and probably in the future more specific roles.
I've seen samples with Azure AD adding "Application roles", but can't find anything for AD B2C. There doesn't seem to be anything in the Azure Portal, neither anything in the documentation.
Is it possible to add custom application roles to Azure AD B2C?
Account Administrator, Service Administrator, and Co-Administrator are the three classic subscription administrator roles in Azure.
Roles using Azure AD security groups. In this approach, roles are represented as Azure AD security groups. The application assigns permissions to users based on their security group memberships.
Create a role in the Azure portalSign in to the Azure portal or Azure AD admin center. Select Azure Active Directory > Roles and administrators > New custom role. On the Basics tab, provide a name and description for the role and then click Next.
In the Modules Settings section, click on the Autoroles option from the left side menu. In the main window, click on the drop-down and select the role you want to add for auto-assign. Choose the length of time necessary for new members to acquire this role in the Delay (minutes) box.
Application roles are not currently supported in Azure AD B2C. You may want to use Azure feedback portal to add this request or vote for an existing one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With