Method: projects.locations.accessPolicies.searchPolicyBindings

Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.

HTTP request

GET https://iam.googleapis.com/v3beta/{name=projects/*/locations/*/accessPolicies/*}:searchPolicyBindings

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
name

string

Required. The name of the access policy. Format: organizations/{organizationId}/locations/{location}/accessPolicies/{accessPolicyId} folders/{folderId}/locations/{location}/accessPolicies/{accessPolicyId} projects/{projectId}/locations/{location}/accessPolicies/{accessPolicyId} projects/{projectNumber}/locations/{location}/accessPolicies/{accessPolicyId}

Query parameters

Parameters
pageSize

integer

Optional. The maximum number of policy bindings to return. The service may return fewer than this value.

If unspecified, at most 50 policy bindings will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.

pageToken

string

Optional. A page token, received from a previous SearchAccessPolicyBindingsRequest call. Provide this to retrieve the subsequent page.

When paginating, all other parameters provided to SearchAccessPolicyBindingsRequest must match the call that provided the page token.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance of SearchAccessPolicyBindingsResponse.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see the Authentication Overview.