# Role REST endpoint This is a basic endpoint that allows role management in CzechIdM. The role of identity can assign system authorities, accounts on end systems. On the other hand, the role can be assigned identity based on the inclusion of an identity in the organizational structure (automatic roles).
# Supports
# API TODO: Swagger
# Examples
## Getting role authorities Authority roles define what the role is potentially allowed. For example, if the role returns to the IDENTITY_READ authority, it means that the user with this role will see tab Users in the GUI. However, the authorities do not guarantee that the user will see other users as such. This is the task of permissions evaluators.
### Request: ``` curl -u admin:admin 'http://localhost:8080/idm-backend/api/v1/roles/userRole/authorities'
```
### Response:
[ { "authority":"IDENTITY_READ" }, { "authority":"IDENTITY_PASSWORDCHANGE" }, { "authority":"ROLE_AUTOCOMPLETE" }, { "authority":"CONTRACTGUARANTEE_ADMIN" }, { "authority":"IDENTITYCONTRACT_ADMIN" }, { "authority":"IDENTITYROLE_ADMIN" }, { "authority":"IDENTITY_AUTOCOMPLETE" } ]