Stay organized with collections
Save and categorize content based on your preferences.
Lists all active credentials for the service account associated with this
enterprise. Only the ID and key type are returned. The calling service
account must have been retrieved by calling Enterprises.GetServiceAccount
and must have been set as the enterprise service account by calling
Enterprises.SetAccount.
Request
HTTP request
GET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys
Parameters
Parameter name
Value
Description
Path parameters
enterpriseId
string
The ID of the enterprise.
Authorization
This request requires authorization with the following scope:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003eThis method lists active credentials (ID and key type only) for an enterprise's associated service account, but is deprecated and will be inaccessible after September 30, 2025.\u003c/p\u003e\n"],["\u003cp\u003eTo use this method, the calling service account must be retrieved and set as the enterprise service account using specific API calls.\u003c/p\u003e\n"],["\u003cp\u003eNew integrations should refer to the recommended alternatives provided in the documentation instead of using this deprecated method.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization with the \u003ccode\u003ehttps://www.googleapis.com/auth/androidenterprise\u003c/code\u003e scope is required to use this API method.\u003c/p\u003e\n"]]],[],null,["| **Note:** Requires [authorization](#auth).\n\n\u003cbr /\u003e\n\n| **Deprecated:** New integrations cannot use this method and can refer to our [new\n| recommendations](/android/work/deprecations#recommended_alternative_4). \n| **This method will no longer be accessible by\n| anyone after September 30, 2025.**\nLists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.\n\n\u003cbr /\u003e\n\nRequest\n\nHTTP request \n\n```\nGET https://www.googleapis.com/androidenterprise/v1/enterprises/enterpriseId/serviceAccountKeys\n```\n\nParameters\n\n| Parameter name | Value | Description |\n|----------------|----------|---------------------------|\n| **Path parameters** |||\n| `enterpriseId` | `string` | The ID of the enterprise. |\n\nAuthorization\n\nThis request requires authorization with the following scope:\n\n| Scope |\n|-----------------------------------------------------|\n| `https://www.googleapis.com/auth/androidenterprise` |\n\nFor more information, see the [authentication and authorization](/android/work/play/emm-api/v1/how-tos/authorizing) page.\n\nRequest body\n\nDo not supply a request body with this method.\n\nResponse\n\nIf successful, this method returns a response body with the following structure:\n\n```objective-c\n{\n \"serviceAccountKey\": [\n serviceaccountkeys Resource\n ]\n}\n```\n\n| Property name | Value | Description | Notes |\n|-----------------------|--------|----------------------------------|-------|\n| `serviceAccountKey[]` | `list` | The service account credentials. | |"]]