Get role mappings
Unreleased This version is not released yet and can change. View the latest version (v9)
- GET /_security/role_mapping/{name}
- GET /_security/role_mapping
Unreleased This version is not released yet and can change. View the latest version (v9)
Role mappings define which roles are assigned to each user. The role mapping APIs are generally the preferred way to manage role mappings rather than using role mapping files. The get role mappings API cannot retrieve role mappings that are defined in role mapping files.
About mapping users to rolesmanage_security
name
union string | string[]
optional
The distinct name that identifies the role mapping. The name is used solely as an identifier to facilitate interaction via the API; it does not affect the behavior of the mapping in any way. You can specify multiple mapping names as a comma-separated list. If you do not specify this parameter, the API returns information about all role mappings.
Leave it out to use /_security/role_mapping.