Assign roles to user

Assigns a set of roles to a human user. The allowed roles depend on the tenant type:

Platform Tenant Users (tenantId = 00000000-0000-0000-0000-000000000001):

  • platform.* (3 permissions: bootstrap, pending-activations.read, regenerate-activation-token)
  • admin.policy.deployment.* (9 permissions: deployment-level policies)
  • admin.policy.tenant.* (9 permissions: cross-tenant policy intervention)
  • admin.tenant.* (tenant management, including list/delete)
  • admin.policy.* (6 permissions: global policy operations including sync, cache management)
  • admin.role.* (2 permissions: role catalog)
  • licenseManagement.* (2 permissions: usage tracking)

Regular Tenant Users (all other tenants):

  • admin.tenant.* (tenant resource management, EXCEPT admin.tenant.list and admin.tenant.delete)
  • admin.policy.tenant.* (9 permissions: own tenant policies only)
  • admin.role.* (2 permissions: role catalog)
  • admin.policy.templates.read (policy template reference)
  • admin.policy.effective.read (effective policy queries)

Forbidden for ALL human users:

  • key_management.* (crypto operations reserved for applications)
  • secure.* (crypto operations reserved for applications)
  • stream.* (streaming crypto reserved for applications)

Validation: All-or-nothing - if ANY role is invalid for the tenant type, the entire request is rejected with HTTP 400.

Existing role assignments will be replaced.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
string
required
Body Params

Payload for replacing the user's roles. Valid values for roles include any of the following:

  • admin.assignRolesToApp
  • admin.assignRolesToHuman
  • admin.createAppCredential
  • admin.createApplication
  • admin.createHumanUser
  • admin.createInstance
  • admin.deleteAppCredential
  • admin.deleteApplication
  • admin.deleteHumanUser
  • admin.deleteInstance
  • admin.getAppCredential
  • admin.getApplication
  • admin.getApplicationRoles
  • admin.getHumanUser
  • admin.getHumanUserRoles
  • admin.getInstance
  • admin.tenant.read
  • admin.listAppCredentials
  • admin.listApplications
  • admin.listHumanUsers
  • admin.listInstances
  • admin.updateAppCredential
  • admin.updateApplication
  • admin.updateHumanUser
  • admin.updateInstance
  • key_management.exportKey
  • key_management.generateKey
  • key_management.importKey
  • key_management.importPrivateKeyPkcs12
  • key_management.listKeys
  • key_management.patchKey
  • key_management.revokeKey
  • key_management.rotateKey
  • licenseManagement.getLicenseInfo
  • platform.bootstrap
  • secure.decrypt
  • secure.encrypt
  • secure.reencrypt
  • secure.resign
  • secure.sign
  • secure.verifySignature
  • stream.decryptStream
  • stream.encryptStream
  • stream.reencryptStream
  • stream.resignStream
  • stream.signStream
  • stream.verifySignatureStream
  • interoperability.encrypt
  • interoperability.verifySignature

Any roles not in this list will be rejected with a 400 or 404 error.

roles
array of strings
required
length between 0 and 50

List of roles to assign to the user. Replaces the user's full role set.

roles*
roleIds
array of uuids

List of role IDs to assign to the user (for new hierarchical API).

roleIds
Headers
string
enum
Defaults to application/problem+json

Generated from available response content types

Allowed:
Responses
204

Roles assigned successfully

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/problem+json
*/*