[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-28 UTC."],[[["\u003cp\u003eThis page details how to retrieve profile information for virtual machine login on Google Compute Engine via a \u003ccode\u003eGET\u003c/code\u003e HTTP request to \u003ccode\u003ehttps://oslogin.googleapis.com/v1/{name=users/*}/loginProfile\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003ename\u003c/code\u003e path parameter in the format \u003ccode\u003eusers/{user}\u003c/code\u003e, and can include \u003ccode\u003eprojectId\u003c/code\u003e and \u003ccode\u003esystemId\u003c/code\u003e query parameters.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will return an instance of \u003ccode\u003eLoginProfile\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of four OAuth scopes, including full cloud platform access, read-only cloud platform access, full compute engine access, or read-only compute engine access.\u003c/p\u003e\n"]]],[],null,["# Method: users.getLoginProfile\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRetrieves the profile information used for logging in to a virtual machine on Google Compute Engine.\n\n### HTTP request\n\n`GET https://oslogin.googleapis.com/v1/{name=users/*}/loginProfile`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [LoginProfile](/compute/docs/oslogin/rest/v1/LoginProfile).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/cloud-platform.read-only`\n- `\n https://www.googleapis.com/auth/compute`\n- `\n https://www.googleapis.com/auth/compute.readonly`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]