ACC-62Recommended
Map directory groups to roles
Let organisation admins map their directory groups to your roles, and apply the mapping on every SCIM change and every sign-in.
How to do it
Store the mapping per organisation, such as the group "Finance" to the role "billing". When a user is in several mapped groups, give the role with the most rights. Never let a group grant a staff role or a role in another organisation. Show on the access page which roles come from the directory. Keep the mapping as data, as keep roles as code says.
How to check
Add a test user to a mapped group in the test directory. Their role changes on the next sync. Remove them from the group, and the role goes back.
Sources
Related rules
- CMP-32 Keep roles as code in Compliance and governance
For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/accounts/business-sign-on-and-provisioning/group-role-mapping">Agent Wranglers accounts and identity playbook</a>. In code you write, add a comment next to it with the same link.