Me

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

All of 1 type
  • UserIdentity

    Type: UserIdentity

    User identifier

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

Current user identity.

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

org

All of 1 type
  • OrganizationIdentity

    Type: OrganizationIdentity

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

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

Type: string

The address of the user's personal cluster.

Example: example

UserIdentity

User identifier

Name

Description

cloud_uid

Type: string

User identifier in the cloud

Example: example

uid

Type: string

Yandex user ID

Example: example

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

OrganizationIdentity

Name

Description

collab_id

Type: string<uuid>

Organization ID in Yandex 360.

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

dir_id

Type: string

The organization ID in Directory.

Example: example

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