Skip to main content

Get

Returns the specified UserAccount resource.

import { cloudApi, serviceClients, Session } from "@yandex-cloud/nodejs-sdk";

const GetUserAccountRequest =
cloudApi.iam.user_account_service.GetUserAccountRequest;

(async () => {
const authToken = process.env["YC_OAUTH_TOKEN"];
const session = new Session({ oauthToken: authToken });
const client = session.client(serviceClients.UserAccountServiceClient);

const result = await client.get(
GetUserAccountRequest.fromPartial({
userAccountId: "userAccountId",
})
);
console.log(result);
})();

GetUserAccountRequest

userAccountId : string

ID of the UserAccount resource to return.

UserAccount

Currently represents only Yandex account.

id : string

ID of the user account.

One of userAccount

  • yandexPassportUserAccount : YandexPassportUserAccount

    A YandexPassportUserAccount resource.

  • samlUserAccount : SamlUserAccount

    A SAML federated user.

YandexPassportUserAccount

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

login : string

Login of the Yandex user account.

defaultEmail : string

Default email of the Yandex user account.

SamlUserAccount

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

Attribute
value : string
federationId : string

ID of the federation that the federation belongs to.

nameId : string

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

attributes : Attribute

Additional attributes of the SAML federated user.

Attribute

value : string