Use this API to retrieve all the roles associated with a user.
Actor | Permission |
---|---|
User | All of the following are required:
|
Client Application | No additional permission is required. |
OK
No Content
Bad Request
Unauthorized
Forbidden
Not Found
Not Acceptable
Internal server error
{- "role": [
- {
- "name": "Admin_Service",
- "department": {
- "name": "Service",
- "id": "999"
}, - "template": {
- "value": "L10N_ADMINISTRATOR_TEMPLATE",
- "displayValue": "Administrator Template"
}, - "global": false,
- "explicit": true,
- "systemCreated": false,
- "lastModified": "2022-11-30T07:11:53.000Z",
- "lastModifiedBy": {
- "user": {
- "firstName": "Partition",
- "lastName": "Administrator",
- "id": "1"
}
}, - "id": "1025"
}, - {
- "name": "Administrator",
- "description": "Role for administrators",
- "department": {
- "name": "Service",
- "id": "999"
}, - "template": {
- "value": "L10N_ADMINISTRATOR_TEMPLATE",
- "displayValue": "Administrator Template"
}, - "global": false,
- "explicit": true,
- "systemCreated": true,
- "id": "998"
}, - {
- "name": "Agent",
- "description": "Role for agents",
- "department": {
- "name": "Service",
- "id": "999"
}, - "template": {
- "value": "L10N_AGENT_TEMPLATE",
- "displayValue": "Agent Template"
}, - "global": false,
- "explicit": true,
- "systemCreated": true,
- "id": "995"
}, - {
- "name": "Author",
- "description": "Role for knowledge authors",
- "department": {
- "name": "Service",
- "id": "999"
}, - "template": {
- "value": "L10N_AUTHOR_TEMPLATE",
- "displayValue": "Author Template"
}, - "global": false,
- "explicit": true,
- "systemCreated": true,
- "id": "999"
}
]
}