Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Identity and Access Management
  • Secure use of Yandex Cloud
  • Access management
  • Pricing policy
  • Role reference
  • Terraform reference
    • Authentication with the API
      • Overview
        • Overview
        • Get
  • Monitoring metrics
  • Audit Trails events
  • Release notes

In this article:

  • HTTP request
  • Path parameters
  • Response
  • YandexPassportUserAccount
  • SamlUserAccount
  • Attribute
  1. API reference
  2. REST
  3. UserAccount
  4. Get

Identity and Access Management API, REST: UserAccount.Get

Written by
Yandex Cloud
Improved by
amatol
Updated at December 17, 2024
  • HTTP request
  • Path parameters
  • Response
  • YandexPassportUserAccount
  • SamlUserAccount
  • Attribute

Returns the specified UserAccount resource.

HTTP requestHTTP request

GET https://iam.api.cloud.yandex.net/iam/v1/userAccounts/{userAccountId}

Path parametersPath parameters

Field

Description

userAccountId

string

Required field. ID of the UserAccount resource to return.

ResponseResponse

HTTP Code: 200 - OK

{
  "id": "string",
  // Includes only one of the fields `yandexPassportUserAccount`, `samlUserAccount`
  "yandexPassportUserAccount": {
    "login": "string",
    "defaultEmail": "string"
  },
  "samlUserAccount": {
    "federationId": "string",
    "nameId": "string",
    "attributes": "object"
  },
  // end of the list of possible fields
  "lastAuthenticatedAt": "string"
}

Currently represents only Yandex account.

Field

Description

id

string

ID of the user account.

yandexPassportUserAccount

YandexPassportUserAccount

A YandexPassportUserAccount resource.

Includes only one of the fields yandexPassportUserAccount, samlUserAccount.

samlUserAccount

SamlUserAccount

A SAML federated user.

Includes only one of the fields yandexPassportUserAccount, samlUserAccount.

lastAuthenticatedAt

string (date-time)

String in RFC3339 text format. The range of possible values is from
0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z, i.e. from 0 to 9 digits for fractions of a second.

To work with values in this field, use the APIs described in the
Protocol Buffers reference.
In some languages, built-in datetime utilities do not support nanosecond precision (9 digits).

YandexPassportUserAccountYandexPassportUserAccount

A YandexPassportUserAccount resource.
For more information, see Yandex account.

Field

Description

login

string

Login of the Yandex user account.

defaultEmail

string

Default email of the Yandex user account.

SamlUserAccountSamlUserAccount

A SAML federated user.
For more information, see federations.

Field

Description

federationId

string

Required field. ID of the federation that the federation belongs to.

nameId

string

Required field. Name Id of the SAML federated user.
The name is unique within the federation. 1-256 characters long.

attributes

object (map<string, Attribute>)

Additional attributes of the SAML federated user.

AttributeAttribute

Field

Description

value[]

string

Was the article helpful?

Previous
Overview
Next
Overview
Yandex project
© 2025 Yandex.Cloud LLC