About this resource

Representation of a non-paged collection of Permission items

Properties

Property Description Type
items A collection of resource items. Collection of Permission items

Relations

Method Name Select-key Resource type Description
GET self Provides a link to this resource.

Actions

Method Action Description Response codes
PUT /user/{userId}/permissions edituserpermission Edits an existing user's permissions
204 Request completed successfully
400 Bad request (in general)
401 Unauthorized access
403 Insufficient permissions
404 User group not found or permission not found
PUT /usergroup/{userGroupId}/permissions editusergrouppermission Edit an existing user group's permissions.
204 Request completed successfully
400 Bad request (in general)
401 Unauthorized access
403 Insufficient permissions
404 User not found or permission not found

Examples

Editing the permissions of a user group Updating multiple permissions of a user group in one request is possible. All permissions are processed in order. If one of the permissions fails to update, no subsequent permissions will be processed.
PUT /usergroup/c590b5d487d54b878619a7fc00cce3e6/permissions
{
"permissions": {
"addOrUpdate": [{
"name": "RoleMyPermission",
"value": "granted"
},
{
"name": "AnotherPermission",
"value": "denied"
}]
}
}
Editing the permissions of a user Updating multiple permissions of a user in one request is possible. All permissions are processed in order. If one of the permissions fails to update, no subsequent permissions will be processed.
PUT /user/c590b5d487d54b878619a7fc00cce3e6/permissions
{
"permissions": {
"addOrUpdate": [{
"name": "RoleMyPermission",
"value": "granted"
},
{
"name": "AnotherPermission",
"value": "denied"
}]
}
}