Hello @Bhuvana Bala
You have integrated Box with Microsoft Entra ID and enabled SSO and automated user provisioning. You want users in the "Box Admin" group to be assigned the "Co-Admin" role in Box, and users in the "Box Member" group to be assigned the "Member" role. However, after assigning users and triggering provisioning, all users are ending up with the "Member" role in Box, regardless of their group membership.
- Review and Configure Role Attribute Mappings
Go to the Microsoft Entra admin center.
Navigate to Enterprise Applications > Box > Provisioning > Attribute Mapping.
Check the mapping for the Box role attribute (often called roles or similar).
Ensure that the mapping uses an expression to transform Entra app role assignments (or group membership) into the correct Box roles.
- Use Expressions for Role Mapping
You must use an expression to map Entra app role assignments to the Box roles, as direct mapping does not work.
For example, use the SingleAppRoleAssignment expression to map users in the "Box Admin" group to the "Co-Admin" role and users in the "Box Member" group to the "Member" role.
Example Expression (Pseudocode):
text
IIF(SingleAppRoleAssignment().displayName == "Box Admin", "Co-Admin", "Member")
Adjust the actual expression based on your group or role names and the attribute names in your environment.
- Assign Users/Groups with Correct Roles
In Entra ID, assign users or groups to the Box application and specify the intended application role (Member or Co-Admin) for each assignment.
- Reprovision Users
After updating the mapping, trigger a reprovisioning (on-demand or wait for the next sync) to ensure users receive the correct roles in Box.
Reference: https://learn.microsoft.com/en-us/entra/identity/app-provisioning/customize-application-attributes