Class UserSignOutParams
-
- All Implemented Interfaces:
-
com.anthropic.core.Params
public final class UserSignOutParams implements Params
Sign a member out of Claude everywhere, without removing them from the organization. This ends their sign-in sessions and removes their trusted devices wherever they use Claude, including other organizations and individual plans. It also ends the OAuth tokens issued to them for this organization, so apps such as Claude Code must sign in again.
A token can take up to an hour to stop working, though it almost always stops at once. The member keeps their role and can sign in again right away. To keep them out, remove them from the organization or, if your organization uses single sign-on, block them in your identity provider. Signing out does not end API keys, OAuth tokens that were not issued for this organization, or the member's Claude Code cloud sessions and routines.
You cannot sign out the organization's primary owner or the person your API key or token acts for, and a request to sign out another owner, a member with owner permissions, or a membership admin may be refused. A refused request returns a
400or403error that says why. If the request returns503, send it again to finish; anything already ended stays ended.Every request must include the beta header
anthropic-beta: admin-user-sign-out-2026-10-08. A request without it returns400. Sign-out is in beta for Claude Enterprise organizations. In an organization where it is not enabled, a request returns400witherror_codeorganization_not_enrolled_in_beta. In a Claude Enterprise organization, an API key needs thewrite:membersscope; a key without it gets403.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classUserSignOutParams.BuilderA builder for UserSignOutParams.
-
Method Summary
Modifier and Type Method Description final Optional<String>userId()ID of the User. final Optional<List<AnthropicBeta>>betas()This endpoint is in beta: requests must send admin-user-sign-out-2026-10-08in this header.final Map<String, JsonValue>_additionalBodyProperties()Additional body properties to send with the request. final Headers_additionalHeaders()Additional headers to send with the request. final QueryParams_additionalQueryParams()Additional query param to send with the request. final UserSignOutParams.BuildertoBuilder()final Optional<Map<String, JsonValue>>_body()final String_pathParam(Integer index)Headers_headers()The full set of headers in the parameters, including both fixed and additional headers. QueryParams_queryParams()The full set of query params in the parameters, including both fixed and additional query params. SpanData_spanData()The data for the OpenTelemetry span of a call to the method with these parameters. Booleanequals(Object other)IntegerhashCode()StringtoString()final static UserSignOutParamsnone()final static UserSignOutParams.Builderbuilder()Returns a mutable builder for constructing an instance of UserSignOutParams. -
-
Method Detail
-
betas
final Optional<List<AnthropicBeta>> betas()
This endpoint is in beta: requests must send
admin-user-sign-out-2026-10-08in this header.
-
_additionalBodyProperties
final Map<String, JsonValue> _additionalBodyProperties()
Additional body properties to send with the request.
-
_additionalHeaders
final Headers _additionalHeaders()
Additional headers to send with the request.
-
_additionalQueryParams
final QueryParams _additionalQueryParams()
Additional query param to send with the request.
-
toBuilder
final UserSignOutParams.Builder toBuilder()
-
_pathParam
final String _pathParam(Integer index)
-
_headers
Headers _headers()
The full set of headers in the parameters, including both fixed and additional headers.
-
_queryParams
QueryParams _queryParams()
The full set of query params in the parameters, including both fixed and additional query params.
-
_spanData
SpanData _spanData()
The data for the OpenTelemetry span of a call to the method with these parameters.
-
none
final static UserSignOutParams none()
-
builder
final static UserSignOutParams.Builder builder()
Returns a mutable builder for constructing an instance of UserSignOutParams.
-
-
-
-