Add credentials and credential groups to a role
POST/api/v1/RolesRole/:roleId/CredentialOrGroup
Adds credentials, credential groups or host users to the scope of a role. Role members can then use the permissions of the role on those credentials. Entries already in the scope are skipped.
Permission required: Administrator role.
Values for entityType: 0 = Credential, 1 = CredentialGroup, 2 = HostUser.
Caution: Role members can use the role's permissions, which can include viewing passwords, on the added credentials immediately.
Request
Responses
- 200
- 400
- 403
- 404
Returns the number of entries added.
The entries could not be added.
The signed-in user does not have the required role, or the account has read-only administrator access.
The role does not exist.