Create one or more inherited roles

post/roles/inherited
Internal-Use Only

Creates one or more inherited roles at the context from roles assigned at the parent context. Authorization: Requires the Manage Roles privilege and 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?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
7 "uri": "/clinicalRepository/roles?sortBy=name:ascending:primary,name:descending:secondary&start=0&limit=100",
8 "type": "application/vnd.sas.collection",
9 "itemType": "application/vnd.sas.clinical.role+json"
10 },
11 {
12 "method": "GET",
13 "rel": "collection",
14 "href": "/clinicalRepository/roles",
15 "uri": "/clinicalRepository/roles",
16 "type": "application/vnd.sas.collection",
17 "itemType": "application/vnd.sas.clinical.role+json"
18 }
19 ],
20 "name": "roles",
21 "accept": "application/vnd.sas.clinical.role+json",
22 "start": 0,
23 "count": 2,
24 "items": [
25 {
26 "version": 1,
27 "createdBy": "sastest1",
28 "creationTimeStamp": "2023-09-13T13:35:54.593000Z",
29 "modifiedBy": "sastest1",
30 "modifiedTimeStamp": "2023-09-13T13:35:54.593000Z",
31 "id": "1d629863-ec6f-4c9c-9f60-147695d73849",
32 "typeId": "roleassignment",
33 "createdByDisplayName": "SAS Test User 1 (sastest1)",
34 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
35 "name": "buTestRole",
36 "displayName": "buTestRole (Business Unit)",
37 "assignedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",
38 "assignedContextTypeId": "therapeuticarea",
39 "definedContextId": "cac68a83-2f9b-4e45-859f-1163581edf1e",
40 "definedContextTypeId": "businessunit",
41 "inherited": true
42 },
43 {
44 "version": 1,
45 "createdBy": "sastest1",
46 "creationTimeStamp": "2023-09-26T15:46:09.962000Z",
47 "modifiedBy": "sastest1",
48 "modifiedTimeStamp": "2023-09-26T15:46:09.962000Z",
49 "id": "c39cf904-5dc5-4dab-b17e-f7960182feb0",
50 "typeId": "roleassignment",
51 "createdByDisplayName": "SAS Test User 1 (sastest1)",
52 "modifiedByDisplayName": "SAS Test User 1 (sastest1)",
53 "name": "taAdminRole",
54 "displayName": "taAdminRole",
55 "description": "Role for the therapeutic area administrator.",
56 "assignedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",
57 "assignedContextTypeId": "therapeuticarea",
58 "definedContextId": "4437483c-dc7f-4512-986e-cde49d97d507",
59 "definedContextTypeId": "therapeuticarea",
60 "inherited": false
61 }
62 ],
63 "limit": 100,
64 "version": 2
65}

Query Parameters

NameTypeRequiredDescription
contextId
string
true

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

Examples:
"d6eefec9-dcc2-4574-8af8-69897038d9c5"

Responses

StatusMeaningDescription
201CreatedOne or more inherited roles were created at the current context.Schema
400Bad RequestBad Request