Test account permissions
TestResourceIamPermissions
Test the access of the authenticated account on a specific combination of resource and a set of permissions. This method will return a subset of the permissions passed into the method, indicating the ones the account has access to. If the account has no access to any of the permissions, an empty list will be returned.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
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
List of permissions we want to check if the account has access to.
Example: [event.event.get
, event.event.update
]
Response
List of permissions that the account has access to on a given resource or its ancestor resources.