If true, this request will return the accounts matching the query. If false, only the count of accounts matching the query will be returned. Defaults to true.
[[["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-05-30 UTC."],[[["\u003cp\u003eThis webpage details how to query user accounts within a specified project or tenant using a POST request to the given endpoint.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003etargetProjectId\u003c/code\u003e and \u003ccode\u003etenantId\u003c/code\u003e are necessary path parameters for scoping the search, requiring specific IAM permissions on the \u003ccode\u003etargetProjectId\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request body allows for filtering and managing search results using parameters like \u003ccode\u003ereturnUserInfo\u003c/code\u003e, \u003ccode\u003elimit\u003c/code\u003e, \u003ccode\u003eoffset\u003c/code\u003e, \u003ccode\u003esortBy\u003c/code\u003e, \u003ccode\u003eorder\u003c/code\u003e, and \u003ccode\u003eexpression\u003c/code\u003e, each with specific configurations and constraints.\u003c/p\u003e\n"],["\u003cp\u003eThe response body, if the request is successful, will be an instance of \u003ccode\u003eQueryUserInfoResponse\u003c/code\u003e, which contains the list of user accounts that match your query.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of the specified OAuth scopes, such as \u003ccode\u003ehttps://www.googleapis.com/auth/identitytoolkit\u003c/code\u003e, \u003ccode\u003ehttps://www.googleapis.com/auth/firebase\u003c/code\u003e, or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.tenants.accounts.query\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLooks up user accounts within a project or a tenant based on conditions in the request.\n\n### HTTP request\n\n`POST https://identitytoolkit.googleapis.com/v1/projects/{targetProjectId}/tenants/{tenantId}/accounts:query`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [QueryUserInfoResponse](/identity-platform/docs/reference/rest/v1/QueryUserInfoResponse).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/identitytoolkit`\n- `\n https://www.googleapis.com/auth/firebase`\n- `\n https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]