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