ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Search Users

Deprecated: use user service v2 ListUsers instead.

Search for users within an organization. By default, we will return users of your organization. Make sure to include a limit and sorting for pagination.

POST
/users/_search

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://loading/users/_search" \  -H "Content-Type: application/json" \  -d '{}'
{
  "details": {
    "totalResult": 0,
    "processedSequence": 0,
    "viewTimestamp": "2023-01-15T01:30:15.01Z"
  },
  "sortingColumn": "USER_FIELD_NAME_UNSPECIFIED",
  "result": [
    {
      "id": "string",
      "details": {
        "sequence": 0,
        "creationDate": "2023-01-15T01:30:15.01Z",
        "changeDate": "2023-01-15T01:30:15.01Z",
        "resourceOwner": "string"
      },
      "state": "USER_STATE_UNSPECIFIED",
      "userName": "string",
      "loginNames": [
        "string"
      ],
      "preferredLoginName": "string",
      "human": {
        "profile": {
          "firstName": "string",
          "lastName": "string",
          "nickName": "string",
          "displayName": "string",
          "preferredLanguage": "string",
          "gender": "GENDER_UNSPECIFIED",
          "avatarUrl": "string"
        },
        "email": {
          "email": "string",
          "isEmailVerified": true
        },
        "phone": {
          "phone": "string",
          "isPhoneVerified": true
        },
        "passwordChanged": "2023-01-15T01:30:15.01Z"
      }
    }
  ]
}

Was this page helpful?