Stay organized with collections
Save and categorize content based on your preferences.
Returns permissions that a caller has on the specified Project. For
additional information about resource (e.g. my-project-id) structure
and identification, see Resource
Names. There are
no permissions required for making this API call.
Arguments
Parameters
resource
string
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
[[["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-09-04 UTC."],[],[],null,["# Method: googleapis.cloudresourcemanager.v1.projects.testIamPermissions\n\nReturns permissions that a caller has on the specified Project. For\nadditional information about `resource` (e.g. my-project-id) structure\nand identification, see [Resource\nNames](https://cloud.google.com/apis/design/resource_names). There are\nno permissions required for making this API call.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`TestIamPermissionsResponse`](https://cloud.google.com/workflows/docs/reference/googleapis/cloudresourcemanager/v1/Overview#TestIamPermissionsResponse).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/resource-manager/reference/rest/v1/projects/testIamPermissions). \n\n### YAML\n\n```yaml\n- testIamPermissions:\n call: googleapis.cloudresourcemanager.v1.projects.testIamPermissions\n args:\n resource: ...\n body:\n permissions: ...\n result: testIamPermissionsResult\n```\n\n### JSON\n\n```json\n[\n {\n \"testIamPermissions\": {\n \"call\": \"googleapis.cloudresourcemanager.v1.projects.testIamPermissions\",\n \"args\": {\n \"resource\": \"...\",\n \"body\": {\n \"permissions\": \"...\"\n }\n },\n \"result\": \"testIamPermissionsResult\"\n }\n }\n]\n```"]]