GET
/
iam
/
auth
/
v1
/
policies
/
{resource_key}
/
test_permissions

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_key
string
required

A resource key for which the account's permissions are being checked.

For organizations, this key consists of two components: the organization ID and string "organization", joined by a forward slash. For all other resources, this key consists of three components: the resource ID, the project ID, and the resource type (e.g. "event" or project"), joined by forward slashes (for projects specifically, this contains the same resource ID twice).

Examples: For organization "example", use example/organization For project "demo", use demo/demo/project For event "r8efdFD9sMSaa93" inside the project "demo", use r8efdFD9sMSaa93/demo/event

Query Parameters

permissions
string[]

List of permissions we want to check if the account has access to. Example: [event.event.get, event.event.update]

Response

200 - application/json
permissions
string[]

List of permissions that the account has access to on a given resource or its ancestor resources.