Get the privileges of the specified role

get/roles/{roleId}/privileges
Internal-Use Only

Returns the privileges of the role by ID. Authorization: Requires read access to the role context.

Request Samples

1

Response Samples

1{
2 "links": [
3 {
4 "method": "GET",
5 "rel": "self",
6 "href": "/clinicalRepository/roles/a49c7de3-978b-4c73-9aac-ef78be80991c/privileges?start=0&limit=10",
7 "uri": "/clinicalRepository/roles/a49c7de3-978b-4c73-9aac-ef78be80991c/privileges?start=0&limit=10",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.clinical.role.privilege+json"
10 },
11 {
12 "method": "GET",
13 "rel": "collection",
14 "href": "/clinicalRepository/roles/a49c7de3-978b-4c73-9aac-ef78be80991c/privileges",
15 "uri": "/clinicalRepository/roles/a49c7de3-978b-4c73-9aac-ef78be80991c/privileges",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.clinical.role.privilege+json"
18 }
19 ],
20 "name": "rolePrivileges",
21 "accept": "application/vnd.sas.clinical.role.privilege+json",
22 "start": 0,
23 "count": 3,
24 "items": [
25 {
26 "version": 1,
27 "id": "PRIVILEGE_ENABLE_VERSIONING",
28 "typeId": "privilege",
29 "name": "Enable Versioning",
30 "description": "Can enable versioning"
31 },
32 {
33 "version": 1,
34 "id": "PRIVILEGE_MANAGE_LOCKS",
35 "typeId": "privilege",
36 "name": "Manage Locking",
37 "description": "Can lock and unlock files"
38 },
39 {
40 "version": 1,
41 "id": "PRIVILEGE_PERMANENTLY_DELETE",
42 "typeId": "privilege",
43 "name": "Permanently Delete Items",
44 "description": "Can permanently delete items"
45 }
46 ],
47 "limit": 10,
48 "version": 2
49}

Path Parameters

NameTypeRequiredDescription
roleId
string
true

The unique identifier for the role.

Responses

StatusMeaningDescription
200OKOKSchema
404Not FoundThe role could not be found to retrieve privileges.