Method: projects.accounts.batchGet

以分頁方式下載專案中所有帳戶的帳戶資訊。使用這個方法需要具備具備適當權限的 Google OAuth 2.0 憑證。此外,您還需要其他權限,才能從帳戶取得密碼雜湊、密碼鹽值和密碼版本;否則,這些欄位會遭到遮蓋。

HTTP 要求

GET https://identitytoolkit.googleapis.com/v1/projects/{targetProjectId}/accounts:batchGet

這個網址使用 gRPC 轉碼語法。

路徑參數

參數
targetProjectId

string

如果指定 tenantId,則為 Identity Platform 租用戶所屬 Google Cloud 專案的 ID。否則,則為帳戶所屬 Google Cloud 專案的 ID。

授權需要指定資源 targetProjectId 的下列 IAM 權限:

  • firebaseauth.users.get

查詢參數

參數
delegatedProjectNumber
(deprecated)

string (int64 format)

nextPageToken

string

先前要求回應中的分頁符記。

maxResults

integer

要傳回的結果數上限。下限值為 1,上限值為 1000。預設值為 20。

tenantId

string

帳戶所屬的 Identity Platform 租用戶 ID。如未指定,系統會傳回 Identity Platform 專案中的帳戶。

要求主體

要求主體必須為空白。

回應主體

如果成功,回應主體會包含 DownloadAccountResponse 的執行個體。

授權範圍

需要下列其中一種 OAuth 範圍:

  • https://www.googleapis.com/auth/identitytoolkit
  • https://www.googleapis.com/auth/firebase
  • https://www.googleapis.com/auth/cloud-platform

詳情請參閱 Authentication Overview