Azure AD, user inherit roles from group

Jonathan Haisi 1 Reputation point
2021-07-06T19:55:22.51+00:00

I'm working in a application we are using roles for feature authorization and groups of users to manage access level.
E.g.:

Roles:
ROLE_Post_Data
ROLE_Read_Data
ROLE_Delete_Data

Groups:
Reader <- ROLE_Read_Data
Writer <- ROLE_Read_Data and ROLE_Post_Data
Admin <- ROLE_Read_Data, ROLE_Post_Data and ROLE_Delete_Data

My user in on Admin group.
Looking into my code (Spring Boot) I can see only the "Admin" group on my roles list from token attributes.
Is it possible to make an user inherit the roles from a group he belongs?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,818 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Marilee Turscak-MSFT 37,156 Reputation points Microsoft Employee
    2021-07-12T23:33:58.727+00:00

    To assign roles to groups, you must create a new security or Microsoft 365 group with the isAssignableToRole property set to true. In the Azure portal, you set the Azure AD roles can be assigned to the group option to Yes.

    https://learn.microsoft.com/en-us/azure/active-directory/roles/groups-concept

    You can also assign app roles to a security group and the user members of the group will inherit the app roles. You need Azure AD Premium to use this feature. https://learn.microsoft.com/en-us/azure/architecture/multitenant-identity/app-roles


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.