Grant Admin Permissions
POST/api/admins/:userId
Grant ADMIN permissions to a user.
You can find more information about roles here.
Tokens
- A valid
AccessTokenwithADMINpermissions is required.
Request
Responses
- 200
- 401
- 403
- 404
- 500
The updated user information
The following error codes correspond to this status:
ACCESS_TOKEN_EXPIRED: Indicates that the access token is expired.ACCESS_TOKEN_INVALID: Indicates that the access token cannot be decoded.AUTHENTICATION_REQUIRED: User is not authenticated.
The following error codes correspond to this status:
ROLE_REQUIRED: Principal does not have required role.
The following error codes correspond to this status:
PRINCIPAL_NOT_FOUND: No principal with specified ID found.
The following error codes correspond to this status:
ACCESS_TOKEN_ALLOWLIST_READING_FAILURE: Represents an exception indicating a failure when reading the allowlist for an access token cache.DATABASE_FAILURE: Exception representing a general failure related to database operations.DATABASE_ENCRYPTION_FAILURE: Exception representing a general failure related to database encryption operations.POST_COMMIT_SIDE_EFFECT_FAILURE: Exception representing a failure to perform a side effect after a successful database operation.INVALID_PRINCIPAL_DOCUMENT: A requested principal document was stored in an invalid format.