Getting user details

Returns information about the current user.

For common headers and authentication methods, see Access to the API. For sample scenarios, see API usage examples.

Request

GET

https://api.wiki.yandex.net/v1/users/me

Responses

200 OK

OK

Body

application/json
{
  "username": "example",
  "home_cluster": "example",
  "identity": {
    "uid": "example",
    "cloud_uid": "example"
  },
  "org": {
    "dir_id": "example",
    "collab_id": "123e4567-e89b-12d3-a456-426614174000"
  }
}

Name

Description

identity

Type: UserIdentity

Current user identity.

User ID

Example
{
  "uid": "example",
  "cloud_uid": "example"
}

org

Type: OrganizationIdentity

IDs of the current organization.

Example
{
  "dir_id": "example",
  "collab_id": "123e4567-e89b-12d3-a456-426614174000"
}

username

Type: string

The current user's username.

Example: example

home_cluster

Any of 2 types
  • Type: string

    Example: example

  • Type: null

    Example: null

The address of the user's personal cluster.

Example: example

UserIdentity

User ID

Name

Description

cloud_uid

Any of 2 types
  • Type: string

    Example: example

  • Type: null

    Example: null

User identifier in the cloud

Example: example

uid

Any of 2 types
  • Type: string

    Example: example

  • Type: null

    Example: null

Yandex user ID

Example: example

Example
{
  "uid": "example",
  "cloud_uid": "example"
}

OrganizationIdentity

Name

Description

collab_id

Any of 2 types
  • Type: string<uuid>

    Example: 123e4567-e89b-12d3-a456-426614174000

  • Type: null

    Example: null

Organization ID in Yandex 360.

Example: 123e4567-e89b-12d3-a456-426614174000

dir_id

Any of 2 types
  • Type: string

    Example: example

  • Type: null

    Example: null

The organization ID in Directory.

Example: example

Example
{
  "dir_id": "example",
  "collab_id": "123e4567-e89b-12d3-a456-426614174000"
}
Previous