Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/zitadel/zitadel/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The User Service API is intended to manage users in a ZITADEL instance. This includes creating, updating, deleting, and listing users, as well as managing authentication methods, passwords, and multi-factor authentication.

API Version

This documentation covers User Service v2.

Authentication

All User Service endpoints require authentication using OAuth2. The following scopes are required:
  • openid
  • urn:zitadel:iam:org:project:id:zitadel:aud

Base URL

https://$CUSTOM_DOMAIN/v2/users

Common Operations

User Management

User Types

ZITADEL supports two types of users:
  1. Human Users - Regular users with profiles, emails, and authentication methods
  2. Machine Users - Service accounts for API access

User States

Users can be in one of the following states:
  • USER_STATE_ACTIVE - User is active and can log in
  • USER_STATE_INACTIVE - User is inactive (deactivated)
  • USER_STATE_LOCKED - User is locked (temporary)
  • USER_STATE_DELETED - User has been deleted
  • USER_STATE_INITIAL - User is in initial state (invited)

Required Permissions

Most User Service operations require the user.write permission for modifications and authenticated permission for read operations. Specific permissions are documented on each endpoint page.

Error Responses

Common HTTP status codes:
  • 400 - Bad Request: The request is malformed
  • 401 - Unauthorized: User is not authenticated
  • 403 - Forbidden: User does not have permission
  • 404 - Not Found: User does not exist
  • 409 - Conflict: User already exists