documents_roles. Admins in the Web UI can then view users but can’t change roles.
This page applies only if you want roles to come from your IdP. If you’d rather have your Admins assign roles in the Web UI, don’t send
documents_roles. Your SSO setup is complete without it. See Sign-in and roles.documents_roles format
documents_roles is a list of strings. Each value combines a Resistant AI tenant ID and a role code:
A user can have different roles across multiple tenants:
Sending it over SAML 2.0
Senddocuments_roles as a multi-valued attribute: the same attribute name, one value per role.
Sending it over OIDC
Includedocuments_roles as an array claim in the ID token and/or the UserInfo response.
Microsoft Entra ID: roles from security groups
Microsoft Entra ID can senddocuments_roles either as fixed values or built from group membership. With a Microsoft Entra ID P1 license or higher, use App roles to turn security group membership into documents_roles values:
1
Create an app role for each tenant role
In App Registration → App roles, create one app role per value, for example:
- Display name:
ResistantAI_Read-Only_Role - Value (emitted in the claim):
3BiP9sxUXfmhsuvKZtEPqD69e2F_RO - Allowed member types:
Users/Groups
2
Assign security groups to app roles
In Enterprise App → Users and groups, assign each security group to its app role, for example:
Auditors→ResistantAI_Read-Only_RoleFraud-Team→ResistantAI_Read-Write_Role
3
Add the documents_roles claim
In Enterprise App → Single sign-on → Attributes & Claims → Add claim:
- Claim name:
documents_roles - Type:
SAML - Value:
Multiple Conditional- User type: members
- Scoped groups: your user group (can be a dynamic group combining several groups)
- Source:
Attribute - Value:
user.assignedroles
Managing users when roles come from your IdP
All changes happen in your IdP:- Give someone access: assign them to the Resistant Documents SAML/OIDC application and add a
documents_rolesvalue. - Change a role: change their
documents_rolesvalue. - Remove access: unassign them from the application or remove the value.
Switching where roles are managed
The role setup applies to your whole organization. It follows from what your IdP sends:- From your IdP to Resistant Documents: stop sending
documents_roles. Every user keeps the role they had, Admins included. From then on, Admins manage roles in User management. - From Resistant Documents to your IdP: start sending
documents_roles. Roles then come from your IdP, and Admins can only view users.
Next steps
- Sign-in and roles: compare setups
- User management: what Admins can do