Sign Out User changedapi/beta/organization/users/sign_out
Nearest release: v2.1.328, published under an hour before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+38added
Lines−0removed
From line
221
where the diff opens
First seen
10 Nov 2026
this site's first read of the page
Recorded edits5to this page, all time
## Errors
The whole hunk
from line 221, old and new numbered
/
from line 221
221221
222222 - `"user"`
223223
224## Errors
225
226Any method can also return the general [HTTP errors](https://platform.claude.com/docs/en/api/errors?sdk_languages=http).
227
228Each code below is the value of `error.details.error_code` in the response body.
229
230- `cannot_sign_out_primary_owner` (HTTP status 400)
231
232 The member is the organization's primary owner, whom no API key or token can sign out.
233
234- `cannot_sign_out_self` (HTTP status 400)
235
236 The member is the user the API key or token belongs to.
237
238- `organization_not_enrolled_in_beta` (HTTP status 400)
239
240 The beta that the endpoint requires is not enabled for the organization. The message names the beta value.
241
242- `cannot_sign_out_managed_member` (HTTP status 403)
243
244 The member has the `managed` role, and this API key or token cannot sign them out. The error message says which keys and tokens can.
245
246- `cannot_sign_out_membership_admin` (HTTP status 403)
247
248 The member is a membership admin, and the person the API key or token belongs to is not allowed to sign out membership admins.
249
250- `cannot_sign_out_owner` (HTTP status 403)
251
252 The member is an owner or has owner permissions, and this API key or token cannot sign them out. In a Claude Enterprise organization, an API key with the `write:members` scope can.
253
254- `cannot_sign_out_privileged_member` (HTTP status 403)
255
256 This OAuth token cannot sign out a membership admin or a member whose roles grant owner, user management, or identity and access management.
257
258- `sandbox_egress_restricted` (HTTP status 403)
259
260 The request came from a Claude sandbox with restricted network access, which is not allowed to make this change. Send it from outside the sandbox, or from a sandbox with unrestricted network access.
261
224262## Example
225263
226264```bash
No line in this hunk matches that.