post
https://staging.ankatech.co/api/v3/admin/tenants//users//roles
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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
204Roles assigned successfully