/authentication/auth/store (Roles and Permissions)
POST
Stores accounts, roles, permission to Identity Service
Parameters in the POST body schema
Name | Type | Description | Example | Default |
---|---|---|---|---|
identityServiceName |
required; string | The name of the idendityService | myService | |
roles |
required, array | An array with roles that should be created or changed. If the role does not exist, it will be created. Otherwise it will be updated. Each Role have a name, folders and permissions |
||
folders |
required, array | An array with folders that can be accessed. The folders are "joc" folders or "controllers" folders. Each folder defines the folder and whether it is recursiv. |
[
"folders": { "joc": [ { "folder": "/test", "recursive": true, } ], "controllers": { "test": [ { "folder": "/Defaults", "recursive": true }, { "folder": "/EmptyFolder", "recursive": true } ] } }
] |
|
permissions |
required, array | An array with permissions The permissions are devided into permissions for JOC and for controllers. There may be one section for each individuell controller. Each permission have a path as an identifier and whether this permission is excluded or included. |
[
"permissions": { "joc": [ { "path": "sos:products:joc:administration:accounts", "excluded": false }, { "path": "sos:products:joc:administration:customization", "excluded": false },... "controllerDefaults": [ { "path": "sos:products:controller:view", "excluded": false }, "controllers": { "test": [ { "path": "sos:products:controller:terminate", "excluded": 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. |
5 | |
ticketLink |
optional, string | Field in auditLog to enter a link to a corresponding ticket. |
Request