Method: projects.locations.policyBindings.list

Lists policy bindings.

HTTP request

GET https://iam.googleapis.com/v3/{parent=projects/*/locations/*}/policyBindings

The URL usesgRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Required. The parent resource, which owns the collection of policy bindings.

Format:

  • projects/{projectId}/locations/{location}
  • projects/{projectNumber}/locations/{location}
  • folders/{folderId}/locations/{location}
  • organizations/{organizationId}/locations/{location}

Query parameters

Parameters
pageSize

integer

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

The default value is 50. The maximum value is 1000.

pageToken

string

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

When paginating, all other parameters provided topolicyBindings.list must match the call that provided the page token.

filter

string

Optional. An expression for filtering the results of the request. Filter rules are case insensitive. Some eligible fields for filtering are the following:

  • target
  • policy

Some examples of filter queries:

  • target:ex*: The binding target's name starts with "ex".
  • target:example: The binding target's name isexample.
  • policy:example: The binding policy's name isexample.

Request body

The request body must be empty.

Response body

If successful, the response body contains an instance ofListPolicyBindingsResponse.

Authorization scopes

Requires the following OAuth scope:

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

For more information, see theAuthentication Overview.

IAM Permissions

Requires the followingIAM permission on theparent resource:

  • iam.policybindings.list

For more information, see theIAM documentation.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-11-12 UTC.