keycloak-scim/server_admin/topics/roles-groups/proc-converting-composite-roles.adoc

26 lines
1.2 KiB
Text
Raw Normal View History

[id="proc-converting-composite-roles_{context}"]
2016-05-25 15:08:14 +00:00
[[_composite-roles]]
=== Composite Roles
[role="_abstract"]
Any realm or client level role can be a _composite role_. A _composite role_ is a role that has one or more additional roles associated with it. When a composite role is mapped to a user, the user gains the roles associated with the composite role. This inheritance is recursive so users also inherit any composite of composites. However, we recommend that composite roles are not overused.
2016-05-25 15:08:14 +00:00
To convert a role to a composite role:
2020-11-13 14:09:23 +00:00
. Click *Roles* in the menu.
. Click the role to access the roles detail page.
. Toggle *Composite Roles* to ON.
2016-05-25 15:08:14 +00:00
.Composite Role
2017-08-28 12:50:14 +00:00
image:{project_images}/composite-role.png[]
2016-05-25 15:08:14 +00:00
The role selection UI is displayed on the page and you can associate realm level and client level roles to the composite role you are creating.
In this example, the *employee* realm-level role is associated with the *developer* composite role. Any user with the *developer* role also inherits the *employee* role.
2016-05-25 15:08:14 +00:00
[NOTE]
====
When creating tokens and SAML assertions, any composite also has its associated roles added to the claims and assertions of the authentication response sent back to the client.
====