Clear a pushed group's role mapping
/api/v1/organizations/{id}/directory/groups/{groupId}/mappingMembers fall back to the role arriving people hold, rather than leaving the 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 Responses
application/json
data *ScimGroupResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X DELETE "https://auth.canopy-io.com/api/v1/organizations/value/directory/groups/value/mapping" \ -H "X-API-Key: $CANOPY_API_KEY"
{ "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.