User Role Inheritance API
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- API reference
The User Role Inheritance API provides endpoints that allow you to see the roles that a specific user inherited.
This API requires the Contextual Security: Role Management V2 REST API (com.glide.role_management.inh_count.rest_api) plugin, automatically activated on new instances starting with the Jakarta release, or the Contextual Security: Role Management Enhancements REST API plugin, automatically activated starting with the Geneva release. The Contextual Security: Role Management V2 REST API is dependent on the Contextual Security: Role Management V2 (com.glide.role_management.inh_count) plugin.
A user’s role can be directly granted, inherited from other roles, or inherited from groups. You must have the user_admin role to access this API.
User Role Inheritance - GET /global/user_role_inheritance
Returns a specified user's granted and inherited roles.
URL format
Versioned URL: /api/global/{api_version}/user_role_inheritance
Default URL: /api/global/user_role_inheritance
Supported request parameters
Name | Description |
---|---|
api_version | Optional. Version of the endpoint to access. For example, v1 or v2. Only specify this value to use an endpoint version other than the
latest.
Data type: String |
Name | Description |
---|---|
user_sysid | Required. Sys_id of the user for which to return role information. |
Name | Description |
---|---|
None |
Headers
The following request and response headers apply to this HTTP action only, or apply to this action in a distinct way. For a list of general headers used in the REST API, see Supported REST API headers.
Header | Description |
---|---|
Accept | Data format of the response
body. Supported types: application/json or
application/xml.
Default: application/json |
Header | Description |
---|---|
None |
Status codes
The following status codes apply to this HTTP action. For a list of possible status codes used in the REST API, see REST API HTTP response codes.
Response body parameters (JSON or XML)
Name | Description |
---|---|
from_group | List of roles that are inherited from groups that have roles. Data type: Array |
from_role | List of roles that are either granted directly or inherited from other
roles. Data type: Array |
user_name | Full name of user. Data type: String |