DELETE
/organization/groups/{group_id}/users/{user_id}Remove a user from a group
Removes a user's membership from a group. Supply group_id and user_id to identify the group membership to remove. The response confirms whether the membership was deleted.
group_idstringrequired
The identifier of the group to update.
user_idstringrequired
The identifier of the user to remove from the group.
200Returns a confirmation containing the `group.user.deleted` object type and a boolean indicating whether the group membership was removed.
objectstringrequired
Always `group.user.deleted`.
deletedbooleanrequired
Whether the group membership was removed.
400Returned when the request parameters are invalid.
errorobjectrequired
403Returned when the authenticated user lacks the required permissions or the request does not use an admin API key.
errorobjectrequired
Details about the permission error.
404Returned when the group or user is not found in the organization, or the endpoint is unavailable.
errorobjectrequired
409Returned when the request conflicts with the current state of the group.
errorobjectrequired
429Returned when the request is rejected because a rate limit was exceeded.
errorobjectrequired
Error handling
A 400 is returned when the request parameters are invalid; a 403 when the authenticated user lacks permission or the request does not use an admin API key; a 404 when the group or user is not found or the endpoint is unavailable; a 409 when the request conflicts with the group's current state; and a 429 when the rate limit is exceeded. The group_id path parameter must identify the group, and the user_id path parameter must identify the user to remove.