Users
Create and manage the identities of a project, such as people or service accounts, and their passwords, passkeys and teams.
A user is an identity in a project, such as a person or a service account. Each user has a schema, which defines its attributes, and may hold a password, passkeys and links to accounts at identity providers.
A common sequence is to create a user, then set a password or register a
passkey for it. The /users/me operations act on the signed-in user instead of
one you name. Pass team_id on create to add the new user as an active team
member; there is no standalone membership write path yet. How team membership
differs from lifecycle ownership:
Access and memberships.
See also Project, team, and user.
| Method | Path | Summary |
|---|---|---|
POST | /users | Create a user |
POST | /users/query | Query users |
GET | /users/{user_id} | Get a user by ID |
PATCH | /users/{user_id} | Update a user by ID |
DELETE | /users/{user_id} | Delete a user by ID |
GET | /users/{user_id}/identity_links | List the provider accounts linked to a user |
GET | /users/{user_id}/passkeys | List a user's passkeys |
POST | /users/{user_id}/passkeys/registrations | Begin a passkey registration |
POST | /users/{user_id}/passkeys/registrations/{registration_id} | Finish a passkey registration |
GET | /users/{user_id}/password | Get a user's password state |
PUT | /users/{user_id}/password | Set a user's password |
GET | /users/{user_id}/teams | List the teams a user belongs to |
GET | /users/me | Get my user information |
PATCH | /users/me | Update my user information |
GET | /users/me/consents | List my consents |
DELETE | /users/me/consents/{consent_id} | Revoke my consent |
GET | /users/me/identity_links | List the provider accounts linked to me |
GET | /users/me/passkeys | List my passkeys |
GET | /users/me/password | Get my password state |
GET | /users/me/personal_access_tokens | List my personal access tokens |
POST | /users/me/personal_access_tokens | Create a personal access token |
DELETE | /users/me/personal_access_tokens/{personal_access_token_id} | Revoke my personal access token |
GET | /users/me/schema | Get my user schema |
GET | /users/me/sessions | List my sessions |
GET | /users/me/teams | List the teams I belong to |
Was this helpful?