Authorize server
Authorize a Cloud user to access a workspace service.
ZenML and Kitaru services call this endpoint to validate the caller's workspace membership. This is also the endpoint called in the second phase of the workspace authorization flow for web clients.
Args: request: The HTTP request server_id: Workspace ID auth_context: Authentication context workspace_manager: Workspace manager
Returns: The currently authenticated user.
Raises: IllegalOperationError: If a workspace-scoped token is used that was not issued for the given workspace.
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.
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.
The time when the user's password was last changed.
Whether the user has completed onboarding.
falseValidation Error
GET /users/authorize_server?server_id=123e4567-e89b-12d3-a456-426614174000 HTTP/1.1
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
"password": "text",
"password_expired": true,
"name": "text",
"avatar_url": "text",
"company": "text",
"job_title": "text",
"metadata": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"id": "123e4567-e89b-12d3-a456-426614174000",
"username": "text",
"email": "text",
"oauth_provider": "text",
"oauth_id": "text",
"is_active": true,
"is_superuser": false,
"is_service_account": false,
"organization_id": "123e4567-e89b-12d3-a456-426614174000",
"password_changed_at": "2026-01-01T00:00:00.000Z",
"is_onboarded": false
}Last updated
Was this helpful?