These steps explain how to add an existing user or group to a Microsoft Entra ID app and then assign a role to that user or group.
Add an existing user or group
- Go to Microsoft Entra ID.
- Select Microsoft Entra ID.
- In the left panel, select Enterprise applications.
- Select your application.
- In the left panel, select Users and groups.
- At the top of the center panel, select the + Add user/group tab.
- Under Users and groups, select None Selected. The Users and groups panel appears.
- In the Users and groups panel, select the user or group you want to add, then select Select.
- Confirm that each user you will be assigning to this Microsoft Entra ID app has a correct and valid email address in the Contact info section of their profile.
If the email property of the Microsoft Entra ID user is left blank, then the OIDC login attempt will not be able to link the Microsoft Entra ID user to the provisioned counterpart user in aiWARE.
Assigning roles to be provisioned
The following steps are optional. If you are mapping Microsoft Entra ID users roles to aiWARE user roles, follow these instructions to ensure that the Microsoft Entra ID roles are assigned to the aiWARE user.
Apply roles to an Entra ID user
- In the main panel, under Select a role *, select None selected. The Select a role panel appears.
- In the Select a role panel, select the role you created in Create a Microsoft Entra ID app role, then hit the Select button.
- At the bottom of the center panel, select Assign. In the upper right corner, an "Application assignment succeeded" message appears.
Create role mapping
In order for the assigned Microsoft Entra ID roles to be provisioned with the user, the following additional steps are necessary.
- Navigate to the desired Enterprise application and select Provisioning.
- If not already selected, select Overview in the lefthand menu.
- Select Edit provisioning from the top menu.
- Open the Mapping tab.
- Select Provision Microsoft Entra ID Users.
- Tick the Show advanced options checkbox.
- Select the Edit attribute list for customappsso link.
- In the table customappsso User Attributes, add a new row with the following:
- Name: roles
- Type: String
- Primary Key: false
- Required: false
- Multi-Value: true
- In the upper left, click the Save button.
- Below the table items, find and click the Add new mapping link. The Edit Attribute screen appears.
- In the Edit Attribute screen, create the following mapping:
- Mapping type: Expression
- Expression: AppRoleAssignmentsComplex([appRoleAssignments])
- Target attribute: roles
- Click the OK button. The Attribute Mapping screen will appear. Find and click the Save button.
Next steps