Skip to main content

GetProfile

OsLogin Profiles

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

const GetOsLoginProfileRequest =
cloudApi.organizationmanager.os_login_service.GetOsLoginProfileRequest;

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

const result = await client.getProfile(
GetOsLoginProfileRequest.fromPartial({
osLoginProfileId: "osLoginProfileId",
})
);
console.log(result);
})();

GetOsLoginProfileRequest​

osLoginProfileId : string​

OsLoginProfile​

id : string​
organizationId : string​
subjectId : string​
login : string​
uid : int64​
isDefault : bool​
homeDirectory : string​
shell : string​