ZITADEL Docs
APIsCore ResourcesV1Organization Objects

Get User by login name (globally)

Deprecated: use user service v2 ListUsers with LoginNameQuery instead.

Get a user by login name searched over all organizations. The request only returns data if the login name matches exactly.

GET
/global/users/_by_login_name

Query Parameters

loginName?string

Response Body

application/json

curl -X GET "https://loading/global/users/_by_login_name"
{
  "user": {
    "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?