POST /user
Edits the permissions of a specific user.
Resource Name: /settings/permissions/user
Permissions Required:- administrator
Parameter |
Type |
Description |
---|---|---|
nameMandatory |
String |
User name. |
Parameter |
Type |
Description |
authorizedApplicationsChanges |
Array of Add/Remove (see Add/Remove) |
List of application permissions to add (ID, permission). List of application IDs to remove from permissions. |
authorizedViewsAndActionChanges |
Array of Add/Remove (see Add/Remove) |
List of permissions to add. List of permissions to remove. |
Return:
Parameter |
Type |
Description |
---|---|---|
authorizedApplicationsChanges |
String |
Application name. |
rolesEdit |
Array of String |
List of roles allowed to edit application. |
Request example:
{
"authorizedApplicationsChanges": {
"add": [
{
"applicationID": 10,
"permission": "view"
},
{
"applicationID": 11,
"permission": "edit"
}
],
"remove": [
13,14
]
},
"authorizedViewsAndActionChanges": {
"add": [
"viewActivityLog","applyDrafts"
],
"remove": [
"viewChangeRequests","createNewApplications"
]
}
}
Return Example:
{
"name": "Sue",
"authorizedViewsAndActions": [
{
"name": "updateObjectFromDevice",
"allowed": false,
"inherited": false
},
{
"name": "createNewApplications",
"allowed": false,
"inherited": false
}
...
],
"authorizedApplications": [
{
"applicationID": 10,
"name": "DNS",
"permission": "view"
}
],
"fullName": "Sue Smith",
"privileged": false
}
â See also: