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
Current user identity. Example
|
|
org |
All of 1 type
IDs of the current organization. Example
|
|
username |
Type: string The current user's username. Example: |
|
home_cluster |
Type: string The address of the user's personal cluster. Example: |
UserIdentity
User identifier
|
Name |
Description |
|
cloud_uid |
Type: string User identifier in the cloud Example: |
|
uid |
Type: string Yandex user ID Example: |
Example
{
"uid": "example",
"cloud_uid": "example"
}
OrganizationIdentity
|
Name |
Description |
|
collab_id |
Type: string<uuid> Organization ID in Yandex 360. Example: |
|
dir_id |
Type: string The organization ID in Directory. Example: |
Example
{
"dir_id": "example",
"collab_id": "123e4567-e89b-12d3-a456-426614174000"
}