Create Role Assignment
Note: Authorization in this context refers to role assignments, not to OAuth authorization.
CreateAuthorization creates a new authorization for a user in an owned or granted project.
Required permissions:
- "user.grant.write"
Connect-Protocol-Version*1Define the version of the Connect protocol
1Connect-Timeout-Ms?Connect-Timeout-MsDefine the timeout, in ms
application/json- body
userId*user_idUserID is the ID of the user who should be granted the authorization.
projectId*project_idProject ID is the ID of the project the user should be authorized for.
organizationId*organization_idOrganizationID is the ID of the organization on which the authorization should be created. The organization must either own the project or have a grant for the project.
roleKeys?array<string>RoleKeys are the keys of the roles the user should be granted.
Success
application/json- response
id?idID is the unique identifier of the newly created authorization.
creationDate?creation_dateCreationDate is the timestamp when the authorization was created.
date-timecurl -X POST 'https://example.com/zitadel.authorization.v2.AuthorizationService/CreateAuthorization' \ -H 'Connect-Protocol-Version: 1' \ -H 'Content-Type: application/json' \ -d '{ "userId": "string", "projectId": "string", "organizationId": "string"}'{ "id": "string", "creationDate": "2023-01-15T01:30:15.01Z"}Was this page helpful?
Activate Role Assignment
Activate Role Assignment: Note: Authorization in this context refers to role assignments, not to OAuth authorization. ActivateAuthorization activates an existing but inactive authorization. In case the authorization is alre...
Deactivate Role Assignment
Deactivate Role Assignment: DeactivateAuthorization deactivates an existing and active authorization.
