Clear a SCIM group's role mapping
/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/scim-groups/{id}/mappingClears a SCIM group's role/node mapping and reconciles, revoking the assignments this group owns — except where an overlapping group still justifies a member's role, in which case ownership is handed to that sibling rather than deleted. Attributed to the portal admin in an scim.group.unmapped audit row; responds 404 when the group is not found in the Environment and 204 with no body on success.
Authentication
AuthorizationJWT access token. Never send alongside X-API-Key: a request carrying both is refused.
sso.manageSecurityManage SSO connections, domains, and directory sync. Granted through an administrator role in the Admin Workspace; a valid token without it is refused with 403.
Path Parameters
idstring Required Responses
Removes the mapping and revokes the role from every member it was granted to
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Errors
When the request can't be completed, the response body includes a stable error code you can branch on.
account.capability_requiredForbiddenThe signed-in user's administrator roles do not grant the capability this endpoint requires.
Ask an account administrator to grant a role carrying the capability named in the Authentication section, then retry.
curl -X DELETE "https://auth.canopy-io.com/portal/v1/accounts/{accountSlug}/applications/{appSlug}/environments/{envSlug}/scim-groups/value/mapping" \ -H "Authorization: Bearer $CANOPY_TOKEN"
HTTP/1.1 204 Removes the mapping and revokes the role from every member it was granted to (empty body)
Tell us how we can improve this guide.