Automatic User Role Mapping
Role mapping in Automatic User Provisioning refers to the assigning of role to an user that has been provisioned to a Team in the NCH from the Azure Active Directory. It is possible only when the SAML Single Sign-On (SSO) is enabled in NCH for the user and set Azure Active Directory up as SAML SSO provider. Refer to this documentation for setting up Azure Active Directory to use it as the SAML SSO provider and enabling SAML SSO in NCH for the user.
To map roles for provisioned users in a Team:
- Log into the Azure portal with your account credentials. Then, go to Home>Microsoft Entra ID. Enterprise applications and groups can be created from here. Refer to this documentation for creating an enterprise application and a group and adding that group within that application.
- After that, go to the Default Directory and click on App registrations under Manage to view your application among the list of registered applications. The
Owned applications
tab opens by default. - Next, click on the
All applications
tab and search the created application. Click on it to view the application details. The overview page opens by default. - Now, click on the App roles tab under Manage on the left to create the required app role and view the already created roles.
- Then, click on the Create app role button on the top which will open the dialog box for creating the app role. The app roles can be created depending on the level of permissions. By default, without an app role, the
devops
role is assigned to an user. Hence, there is no need to create a particulardevops
role as an app role.
a. Enter the name of your role underDisplay name
, e.g. admin, platform.
b. Click onUsers/Groups
as theAllowed member types
.
c. Specify theValue
asadmin
orplatform
depending on your preference.
d. Give a detailed description of the role underDescription
that will appear during app assignment and consent experiences.
e. The enablement of the role is checked by default.
e. Click Apply.
- After creating the application role, go to the application created earlier and click on the Assign users and groups for assigning the created app-role to an user.
- Click on the Add user/group button on the top. The
Add Assignment
page opens. - Select the user to which the role will be assigned by clicking on
None Selected
underUsers and groups
.
a. Search the user from the search directory.
b. Next, click on the checkbox beside the user and clickSelect
.
c. After that, click onNone Selected
underSelect a role
to assign the created app role.
d. Now, click on the created role from the list and clickSelect
.
e. Finally, click on the Assign button to add the user to your application with the assigned role.
- The user can log into the NCH tenant with Azure Active Directory as the SAML SSO provider and will get the assigned role.