ZITADEL Docs
APIsCore ResourcesV1Organization Objects

GetUserByLoginNameGlobal

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

application/json

curl -X GET "https://loading/global/users/_by_login_name"
{
  "user": {
    "id": "string",
    "details": {
      "sequence": 0,
      "creationDate": "1s",
      "changeDate": "1s",
      "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": "1s"
    }
  }
}
{
  "code": "not_found",
  "message": "string",
  "detail": {
    "type": "string",
    "value": "string",
    "debug": {}
  }
}

Was this page helpful?