Give a group of the organization an organization role: a built-in role, a custom role or both. Direct members of the group who are members of the organization get the permissions on their next request. Members of nested groups do not. role user without custom_role_id removes the group role. Every permission the group had and gets must be a permission of the caller. Needs members:manage.
Applies to direct group members only.
Parameters
Organization ID (UUID)
Group identity ID (UUID)
Request body application/json · OrgGroupRoleRequest
Built-in role the group gives. user gives nothing.
adminvieweruserCustom role the group gives, or null.
Responses
OK
OrgGroupRoleResponse · 4 fields
2 fields
adminvieweruserA custom role of the organization.
2 fields
No Content: the group role was removed
Bad Request: the identity is not a group, or the role is unknown.
Forbidden: the caller lacks members:manage, or the role names permissions the caller does not have (details.reason=role_exceeds_caller, details.missing_permissions lists them).
Not Found: the organization, role or group does not exist or belongs to another organization.
The Idempotency-Key belongs to a running request with the same key (Retry-After) or to a request with another endpoint or body (resource.conflict). Also (details.error_code organization_administrator_required) the change would leave the organization without a person who holds every permission and can sign in.
Common errors: 401 413 429 503 504. They mean the same for every operation, see Errors.