Edit vault authorization
Update the permissions that users and groups have on a vault in the system. Also, provide or deny anonymousPermissions.
Request
Security
| Any | Super User | System Admin | Security Admin | Operator |
|---|---|---|---|---|
| superUser | securityAdmin |
HTTP method
POST /manager/api/{apiResponseType}/1.0/editVaultAuthorization.adm HTTP/1.1
Host:{manager.dsnet}
id={vaultId}&anonymousPermission={readOnly|readWrite|disabled|owner}&userPermissions[{userId}]={readOnly|readWrite|disabled|owner}&groupPermissions[{groupId}]={readOnly|readWrite|disabled|owner}
Curl method
curl -u {admin}:{password}
-k ”https://{manager.dsnet}/manager/api/json/1.0/editVaultAuthorization.adm“
-d ”id={vaultId}&anonymousPermission={readOnly|readWrite|disabled|owner}
&userPermissions[{userId}]={readOnly|readWrite|disabled|owner}
&groupPermissions[{groupId}]={readOnly|readWrite|disabled|owner}“Parameters
| Parameter | Type | Usage | Default | Description |
|---|---|---|---|---|
| id | Long | Required |
ID of vault to edit the authorizations of. |
|
| anonymousPermission | String | Optional | disabled |
Permissions for anonymous users of vault.
|
| userPermissions | Map[{userId}] | Optional |
Permissions to grant to a specific user.
User IDs are passed as a hash with the user's ID as the key and the permission as the value: userPermissions[{userId}]={permission} |
|
| groupPermissions | Map[{groupId}] | Optional |
Permissions level to grant to a specific group.
Group IDs are passed as a hash with the group's ID as the key and the permission as the value: groupPermissions[{userId}]={permission} |
Response
Returns success or failure status.
JSON response example
Default JSON success or failure response that is shown in Default JSON success response and Default JSON failure response.
Parameters
None other than the default response parameters shown in Common response parameters.