Docs
Live demo
PUT/api/v2/organizations/{id}/group-roles/{group_id}

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

Path2 required of 2
idstringpathrequired

Organization ID (UUID)

group_idstring · uuidpathrequired

Group identity ID (UUID)

Request body application/json · OrgGroupRoleRequest

Required1 of 2 fields
rolestringrequired

Built-in role the group gives. user gives nothing.

adminvieweruser
Optional1 field
custom_role_idstring · uuid

Custom role the group gives, or null.

can be null

Responses

200

OK

OrgGroupRoleResponse · 4 fields
groupOrgGroupRefrequired
2 fields
idstring · uuidrequired
labelstringrequired
rolestringrequired
adminvieweruser
custom_roleOrgCustomRoleRefrequired

A custom role of the organization.

can be null
2 fields
idstring · uuidrequired
namestringrequired
updated_atstring · date-timerequired
204

No Content: the group role was removed

400

Bad Request: the identity is not a group, or the role is unknown.

403

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).

404

Not Found: the organization, role or group does not exist or belongs to another organization.

409

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.

↑ ↓ to moveEnter to openEsc to close