Getting a role data by its ID

This method allows getting a particular role data by its ID

Limitations
Method is available for administrator users only.

Data type header when the request is successful
Content-Type: application/hal+json

Data type header in case of an error
Content-Type: application/problem+json

Parameters for GET-parameters “with”

ParameterDescription
usersAdds IDs of users with the current role into the response

Response parameters
Method returns a user role object. The properties of the object are listed below.
Rights objects have a common structure. Depending on the entity type these objects contain available actions as keys and the rights for the action as a value. For example, rights[leads][view]=A.

ParameterData typeDescription
idintRole ID
namestringRole name
rightsobjectUser rights
rights[leads]objectLeads access rights object
rights[contacts]objectContacts access rights object
rights[companies]objectCompanies access rights object
rights[tasks]objectTasks access rights object
rights[mail_access]boolDefines whether Mail functionality is allowed for the user.
rights[catalog_access]boolDefines whether Lists functionality is allowed for the user.
rights[is_admin]boolDefines whether the user has administrator rights.
rights[is_free]boolDefines whether it is a free user.
rights[is_active]boolDefines whether the user is active.
rights[group_id]int|nullID of the user’s group
rights[role_id]int|nullID of the user’s role
rights[status_rights]arrayAn array of the objects that define stages rights
rights[status_rights][0]objectAn object of stage rights
rights[status_rights][0][entity_type]stringEntity type. Only lead entity is supported at the moment
rights[status_rights][0][pipeline_id]intID of the pipeline the stage is located in.
rights[status_rights][0][status_id]intStage ID
rights[status_rights][0][rights]objectRights object
_embedded[users]arrayAn array containing IDs of users with the current role
Language
Credentials
OAuth2
URL
Click Try It! to start a request and see the response here!