Sample - OpenAI API
DELETE/organization/groups/{group_id}/users/{user_id}

Remove a user from a group

Removes a user from an organization group. Supply group_id and user_id to identify the group membership to remove. A successful response confirms whether the membership was deleted.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
group_idstringrequired
The unique identifier of the group to update.
user_idstringrequired
The unique identifier of the user to remove from the group.

2 status codes
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`.
Allowed:group.user.deleted
deletedbooleanrequired
Whether the group membership was removed.
429Returned when the request was rejected because a rate limit was exceeded.
errorobjectrequired

Error handling

group_id must identify the group to update, and user_id must identify the user membership to remove. A 429 is returned when the request exceeds the applicable rate limit.