[[["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-21 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003egrants.search\u003c/code\u003e method, which retrieves grants related to the calling user in a specified manner.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a \u003ccode\u003eGET\u003c/code\u003e operation targeting a specific URL structure with path parameters for the parent resource.\u003c/p\u003e\n"],["\u003cp\u003eThe method requires a \u003ccode\u003ecallerRelationship\u003c/code\u003e query parameter to specify the caller's relationship to the grants being searched, with optional parameters available to filter, set page size, and use pagination.\u003c/p\u003e\n"],["\u003cp\u003eNo request body is needed, but a successful call will return a \u003ccode\u003eSearchGrantsResponse\u003c/code\u003e object as a response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this method requires the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.entitlements.grants.search\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- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\n`grants.search` returns grants that are related to the calling user in the specified way.\n\n### HTTP request\n\n`GET https://privilegedaccessmanager.googleapis.com/v1/{parent=projects/*/locations/*/entitlements/*}/grants:search`\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\nIf successful, the response body contains an instance of [SearchGrantsResponse](/iam/docs/reference/pam/rest/v1/SearchGrantsResponse).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]