Map a pushed group to one of the available roles
/api/v1/organizations/{id}/directory/groups/{groupId}/mappingGrants the role to every current member at the organization. The role must be one the application owner has made available to this organization.
Authentication
Bearer Token
Authorization Option A JWT access token. Never send alongside X-API-Key: a request carrying both is refused.
API Key
X-API-Key Option B API key for management-tier access. Never send alongside an Authorization header: a request carrying both is refused.
Path Parameters
idstring Required groupIdstring Required Request body
application/json
role_idstring Required The role to grant members of this group. Must be one the application owner has made available to this organization.
Responses
application/json
data *ScimGroupResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X PUT "https://auth.canopy-io.com/api/v1/organizations/value/directory/groups/value/mapping" \ -H "X-API-Key: $CANOPY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "role_id": "string" }'
{ "data": { "id": "string", "external_id": "string", "display_name": "string", "role_id": "string", "application_node_id": "string", "member_count": 0, "created_at": "2026-04-20T12:00:00.000Z" } }
Tell us how we can improve this guide.