[[["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-02 UTC."],[[["\u003cp\u003eThis page documents the process of retrieving a service account for a specific project using an HTTP GET request to the Google BigQuery API.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eprojectId\u003c/code\u003e path parameter, which is the unique identifier for the project.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty for this API call to be valid.\u003c/p\u003e\n"],["\u003cp\u003eThe successful response includes a JSON object containing the service account's \u003ccode\u003ekind\u003c/code\u003e (resource type) and \u003ccode\u003eemail\u003c/code\u003e address.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires one of the following authorization scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e, \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e, \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery.readonly\u003c/code\u003e, or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform.read-only\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.getServiceAccount\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.GetServiceAccountResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nRPC to get the service account for a project used for interactions with Google Cloud KMS\n\n### HTTP request\n\n`GET https://bigquery.googleapis.com/bigquery/v2/projects/{projectId}/serviceAccount`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nResponse object of projects.getServiceAccount\n\nIf successful, the response body contains data with the following structure:\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/bigquery`\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/bigquery.readonly`\n- `https://www.googleapis.com/auth/cloud-platform.read-only`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]