Skip to main content

List roles

Returns

Example

JAVASCRIPT
1
2
3
4
5
6
7
8
9
10
client.roles.list({ pageIndex: 1, pageSize: 5 }) .then(result => { console.log('API call result: ', result); }) .catch(error => { console.log('API call error: ', error); });
JSON
1
2
3
4
5
6
7
8
9
10
11
{ "logId": "00000000-0000-0000-0000-000000000000", "message": "There are validation errors listing the roles", "data": [ { "field": "projectId", "message": "The project does not exist" } ], "type": "Validation" }
JSON
1
2
3
4
5
6
7
8
9
10
{ "logId": "00000000-0000-0000-0000-000000000000", "message": "There are validation errors listing the roles", "data": [ { "message": "Access denied" } ], "type": "Validation" }

Still need help?

New support request