Me
Get the currently authenticated user.
Args: user: Authenticated user
Returns: The currently authenticated user.
Successful Response
User model for displaying user account and service account information.
This model is currently used for both user accounts and service accounts to ensure backward compatibility.
The name of the user.
The avatar URL of the user.
The company of the user.
The job title of the user.
Additional metadata associated with the user.
The unique username for the account. For OAuth2 user accounts, this is the same as the email address.
^[a-zA-Z0-9_\-@.]+$The email address associated with the account. For OAuth2 user accounts, this is the unique identifier for the user and is also used as the username.
The external OAuth2 provider that the user is associated with.
The external OAuth2 ID of the user.
Whether the account is active.
trueWhether the account is a superuser.
falseWhether the account is a service account.
falseThe ID of the organization that the service account belongs to. Only set for service accounts.
Whether the user has completed onboarding.
falseSuccessful Response
Update the currently authenticated user.
Args: user_update: User update user: Authenticated user user_manager: User manager
Returns: The updated user.
Raises: ValueError: If the user is internal, service account, or the username is the admin username.
Model for user updates.
The name of the user.
The avatar URL of the user.
The company of the user.
The job title of the user.
Additional metadata associated with the user.
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.
^[a-zA-Z0-9_\-@.]+$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.
Successful Response
User model for displaying user account and service account information.
This model is currently used for both user accounts and service accounts to ensure backward compatibility.
The name of the user.
The avatar URL of the user.
The company of the user.
The job title of the user.
Additional metadata associated with the user.
The unique username for the account. For OAuth2 user accounts, this is the same as the email address.
^[a-zA-Z0-9_\-@.]+$The email address associated with the account. For OAuth2 user accounts, this is the unique identifier for the user and is also used as the username.
The external OAuth2 provider that the user is associated with.
The external OAuth2 ID of the user.
Whether the account is active.
trueWhether the account is a superuser.
falseWhether the account is a service account.
falseThe ID of the organization that the service account belongs to. Only set for service accounts.
Whether the user has completed onboarding.
falseValidation Error
Last updated
Was this helpful?