ZiamBindUserRole
Binds a global ZIAM role to a user by creating a RoleBinding resource. The operation is idempotent; repeated calls return changed=false. project-admin is a global user role and is valid here for every Project; ProjectID only selects the current resource scope. project-owner remains Project-scoped and must use ProjectMembership.
/api/v1/ziam/users/{userUuid}/roles/{roleKey}Operation ID
ZiamBindUserRoleSince
1.0.0Execution Mode
SynchronousAuth Context
Auth RequiredAuth Context
Send these values as request headers when calling this API.
AuthorizationstringRequiredBearer Token
X-Tenant-IDstringX-Tenant-ID
Request Inputs
application/jsonPath Parameters
userUuidStringRequiredUser uuid. Both compact 32-character uuid and dashed uuid are accepted; the response uses compact uuid.
Example: 11111111111111111111111111111111
roleKeyStringRequiredStable role key to bind or unbind, for example ziam-platform-admin.
Example: ziam-platform-admin
Body Fields
Optional body for binding a global ZIAM role to a subject. Empty body means an enabled binding.
roleUuidStringOptional role uuid. roleKey in the path is always required and is the stable binding key.
Example: 66666666666666666666666666666666
enabledBooleanWhether the binding is enabled. Defaults to true.
Example: true
Responses
200 OKChange History
View all change historyChange Time
DeletedRequest body fields scopeType, scopeUuidAddedResponse fields roleKeysDeletedResponse fields scopeType, scopeUuidView API
