Users

List Users Endpoint

get

List users.

Args: offset: Offset for pagination limit: Limit for pagination user_id: Filter by user ID oauth_provider: Filter by OAuth provider oauth_id: Filter by OAuth ID email: Filter by email is_active: Filter by active status user: Authorized user user_manager: User manager

Returns: List of users matching the filter criteria

Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:

OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Query parameters
offsetintegerOptionalDefault: 0
limitintegerOptionalDefault: 100
user_idany ofOptional
string · uuidOptional
or
nullOptional
oauth_providerany ofOptional
stringOptional
or
nullOptional
oauth_idany ofOptional
stringOptional
or
nullOptional
emailany ofOptional
stringOptional
or
nullOptional
is_activeany ofOptional
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
get
/users

Delete User Endpoint

delete

Delete a user.

Args: user_id: User ID to delete user: Authenticated user user_manager: User manager workspace_manager: Workspace manager organization_manager: Organization manager

Raises: ValueError: If the user is internal. IllegalOperationError: If the operation is not allowed.

Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:

OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Path parameters
user_idstring · uuidRequired
Responses
chevron-right
200

Successful Response

application/json
Responseany
delete
/users/{user_id}

No content

Update User Endpoint

patch

Update a user.

Args: user_id: User ID user_update: User update user: Authenticated user user_manager: User manager

Returns: The updated user.

Raises: IllegalOperationError: If the operation is not allowed or the user does not exist.

Authorizations
OAuth2clientCredentialsRequired
Token URL: Refresh URL:

OAuth2authorizationCodeRequired
Authorization URL: Token URL: Refresh URL:
Path parameters
user_idstring · uuidRequired
Body

Model for user updates.

passwordany ofOptional
stringOptional
or
nullOptional
password_expiredany ofOptional
booleanOptional
or
nullOptional
nameany ofOptional

The name of the user.

string · min: 1 · max: 50Optional
or
nullOptional
avatar_urlany ofOptional

The avatar URL of the user.

stringOptional
or
nullOptional
companyany ofOptional

The company of the user.

string · min: 1 · max: 50Optional
or
nullOptional
job_titleany ofOptional

The job title of the user.

string · min: 1 · max: 50Optional
or
nullOptional
metadataany ofOptional

Additional metadata associated with the user.

objectOptional
or
nullOptional
usernameany ofOptional

New username for the user. Not possible to change the username for OAuth2 user accounts because it's the same as the email address provided by the external OAuth2 provider.

string · min: 1 · max: 50OptionalPattern: ^[a-zA-Z0-9_\-@.]+$
or
nullOptional
emailany ofOptional

New email address for the user. Not possible to change the email address for OAuth2 user accounts because it's the same as the email address provided by the external OAuth2 provider.

string · emailOptional
or
nullOptional
is_activeany ofOptional
booleanOptional
or
nullOptional
is_onboardedany ofOptional
booleanOptional
or
nullOptional
Responses
chevron-right
200

Successful Response

application/json
patch
/users/{user_id}

Last updated

Was this helpful?