Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Define application specific user roles in Azure AD B2C

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?

like image 269
Gimly Avatar asked Oct 23 '17 13:10

Gimly


People also ask

What are the 3 types of Azure roles?

Account Administrator, Service Administrator, and Co-Administrator are the three classic subscription administrator roles in Azure.

What is app roles in Azure AD?

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.

How do I add a role to Azure b2c?

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.

How do I assign a role to an app?

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.


1 Answers

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.

like image 183
Omer Iqbal Avatar answered Oct 03 '22 18:10

Omer Iqbal