Skip to main content

List Access Policies Granted

Request

Lists the access policies granted to the subject identified by the given token within a project.

Bodyapplication/jsonrequired
projectIdstring(ProjectId)^project:[0-9a-zA-Z](?![^:]*-$)(?![^:]*--)[0-...required

Globally unique identifier of a project.

Example:"project:abc-123"
subjectTokenstring, <= 4096 charactersrequired

An ID or access token indicating the subject to list granted access policies for

Example:"eyJhbGciOiJSUzI1NiJ9..."
subjectTokenTypestringrequired

Indicates whether the subject token is an ID token or access token

Value:"urn:ietf:params:oauth:token-type:id_token"
Example:"urn:ietf:params:oauth:token-type:id_token"
pageSizeinteger, [ 1 .. 1000 ](PageSize)

When paging through results, this is an integer indicating the maximum number of results to return. Note, it is possible for fewer results to be returned even when the end of the result set has not been reached.

Default:100
Example:20
pageTokenstring, [ 1 .. 4096 ] characters(PageToken)

When paging through results, the PageToken is an opaque indicator that identifies a page.

Example:"eyJwYWdlIjoyfQ=="
Payload
{ "projectId": "project:abc-123", "subjectToken": "eyJhbGciOiJSUzI1NiJ9...", "subjectTokenType": "urn:ietf:params:oauth:token-type:id_token", "pageSize": 20, "pageToken": "eyJwYWdlIjoyfQ==" }

Responses

Success

Bodyapplication/json
listArray of objectsrequired
nextPageTokenstring, [ 1 .. 4096 ] characters(NextPageToken)

When paging through results, the NextPageToken indicates what page to read next. It is obtained from the previous call.

Example:"eyJsYXN0S2V5IjoiYWJjMTIzIn0="
Response
{ "list": [ { … } ], "nextPageToken": "eyJsYXN0S2V5IjoiYWJjMTIzIn0=" }
Was this page helpful?