/iam/permissions/store
POST
Stores permissions to a given role and Controller ID
Parameters in the POST body schema
Name | Type | Description | Example | Default | |
---|---|---|---|---|---|
identityServiceName |
required, string | The name of the idendityService that should be considered for this call | myService | ||
roleName |
required, string | The name of the role for which the permissions should be stored | myRole | ||
controllerId |
optional, string | The Controller ID for which the permissions should be stored | myControllerId | ||
permissions |
required, array[object] | A collection with permission names that should be assigned to the role and Controller ID. If the permission already exists, it will be updated. If the permission does not exist it will be inserted. Permissions that are already assigned and are not in the list, will not be deleted. As a result the account will have the permissons in this collection and the the permissions that did already exist | [{
"permissionPath": "myPermission1",
"excluded": true
}] |
||
permissionPath |
required, string | The path of the permission | |||
excluded |
optional, boolean | Whether the permission is excluded or included | true | false | |
auditLog |
optional, object | Object that contains comment , timeSpent and ticketLink . |
{ "comment": "Operational requirement!", "timeSpent": 2 } |
||
comment |
optional, string | Field in auditLog to comment this action, e.g. the reason. |
|||
timeSpent |
optional, integer | Field in auditLog to enter the time spent in minutes. |
|||
ticketLink |
optional, string | Field in auditLog to enter a link to a corresponding ticket. |
Request