Get roles
Get roles in the native realm. The role management APIs are generally the preferred way to manage roles, rather than using file-based role management. The get roles API cannot retrieve roles that are defined in roles files.
Path parameters
-
name
string | array[string] Required The name of the role. You can specify multiple roles as a comma-separated list. If you do not specify this parameter, the API returns information about all roles.
GET
/_security/role/{name}
curl \
--request GET http://api.example.com/_security/role/{name} \
--header "Authorization: $API_KEY"