Get unassigned roles

get/roles/unassigned

Returns roles that are assigned at the parent context. These unassigned roles can be added as inherited roles.

Request Samples

1

Response Samples

1{
2 "value": {
3 "links": [
4 {
5 "method": "GET",
6 "rel": "self",
7 "href": "/clinicalRepository/roles/unassigned?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
8 "uri": "/clinicalRepository/roles/unassigned?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
9 "type": "application/vnd.sas.collection",
10 "itemType": "application/vnd.sas.clinical.role+json"
11 },
12 {
13 "method": "GET",
14 "rel": "collection",
15 "href": "/clinicalRepository/roles/unassigned",
16 "uri": "/clinicalRepository/roles/unassigned",
17 "type": "application/vnd.sas.collection",
18 "itemType": "application/vnd.sas.clinical.role+json"
19 }
20 ],
21 "name": "roles",
22 "accept": "application/vnd.sas.clinical.role+json",
23 "start": 0,
24 "count": 2,
25 "items": [
26 {
27 "version": 1,
28 "createdBy": "sastest1",
29 "creationTimeStamp": "2023-08-30T12:23:48.037000Z",
30 "modifiedBy": "sastest1",
31 "modifiedTimeStamp": "2023-09-19T19:00:42.594000Z",
32 "id": "f93ed790-c745-445d-8b67-304b478bb78b",
33 "typeId": "roleassignment",
34 "createdByDisplayName": "SAS Test User 1 (sastest1)",
35 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
36 "name": "role1",
37 "displayName": "role1",
38 "assignedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",
39 "assignedContextTypeId": "businessunit",
40 "definedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",
41 "definedContextTypeId": "businessunit",
42 "inherited": false
43 },
44 {
45 "version": 1,
46 "createdBy": "sastest1",
47 "creationTimeStamp": "2023-08-30T12:23:48.037000Z",
48 "modifiedBy": "sastest1",
49 "modifiedTimeStamp": "2023-09-19T19:00:42.594000Z",
50 "id": "554a9400-0962-454d-9cb4-394772e2ea74",
51 "typeId": "roleassignment",
52 "createdByDisplayName": "SAS Test User 1 (sastest1)",
53 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
54 "name": "role2",
55 "displayName": "role2",
56 "assignedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",
57 "assignedContextTypeId": "businessunit",
58 "definedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",
59 "definedContextTypeId": "businessunit",
60 "inherited": false
61 }
62 ],
63 "limit": 100,
64 "version": 2
65 }
66}

Query Parameters

NameTypeRequiredDescription
contextId
string
true

The unique identifier of the context in which to add inherited roles.

Responses

StatusMeaningDescription
200OK

OK

Schema