---
metadata:
  - name: generator
    content: Diplodoc Platform v5.44.0
alternate:
  - https://yandex.com/dev/disk/doc/en/reference/userinfo.md
  - https://yandex.com/dev/disk/doc/ru/reference/userinfo.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/disk/doc/en/llms.txt

# Request for user login

You can request the login of the user whose OAuth token you are using for authentication. This method is not available for Basic authentication.

> The login of the user with the specified access token is requested.
>
> ```yaml
> GET /?userinfo HTTP/1.1
> Host: webdav.yandex.com
> Accept: */*
> Authorization: OAuth 0c4182a7c2cf4521964a72ff57a34a07
> ```
>
> If the passed token is valid, the following response is returned:
>
> ```yaml
> HTTP/1.1 200 OK
> Content-Type: text/plain
> Content-Length: 10
>
> login:test
> ```
>
> The response body contains the `login` field, where the value “test” is the requested login.
