[[["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 API endpoint searches for assignments within a specified resource (project, folder, or organization) and location.\u003c/p\u003e\n"],["\u003cp\u003eThe API uses \u003ccode\u003eGET\u003c/code\u003e requests to the URL \u003ccode\u003ehttps://bigqueryreservation.googleapis.com/v1/{parent=projects/*/locations/*}:searchAllAssignments\u003c/code\u003e, where \u003ccode\u003eparent\u003c/code\u003e is a required path parameter.\u003c/p\u003e\n"],["\u003cp\u003eQuery parameters such as \u003ccode\u003equery\u003c/code\u003e, \u003ccode\u003epageSize\u003c/code\u003e, and \u003ccode\u003epageToken\u003c/code\u003e can be used to refine the search and handle pagination, with \u003ccode\u003equery\u003c/code\u003e being used to specify the resource name as assignee.\u003c/p\u003e\n"],["\u003cp\u003eThe API returns a list of assignments visible to the user, along with a \u003ccode\u003enextPageToken\u003c/code\u003e for pagination, in a JSON format.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ebigquery.reservationAssignments.search\u003c/code\u003e IAM permission and one of the specified OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/bigquery\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.searchAllAssignments\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 - [JSON representation](#body.SearchAllAssignmentsResponse.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nLooks up assignments for a specified resource for a particular region. If the request is about a project:\n\n1. Assignments created on the project will be returned if they exist.\n2. Otherwise assignments created on the closest ancestor will be returned.\n3. Assignments for different JobTypes will all be returned.\n\nThe same logic applies if the request is about a folder.\n\nIf the request is about an organization, then assignments created on the organization will be returned (organization doesn't have ancestors).\n\nComparing to assignments.list, there are some behavior differences:\n\n1. permission on the assignee will be verified in this API.\n2. Hierarchy lookup (project-\\\u003efolder-\\\u003eorganization) happens in this API.\n3. Parent here is `projects/*/locations/*`, instead of `projects/*/locations/*reservations/*`.\n\n### HTTP request\n\n`GET https://bigqueryreservation.googleapis.com/v1/{parent=projects/*/locations/*}:searchAllAssignments`\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\nThe response for [ReservationService.SearchAllAssignments](/bigquery/docs/reference/reservations/rest/v1/projects.locations/searchAllAssignments#google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignments).\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\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]