---
title: "POST /v1alpha1/policies:test"
method: POST
path: "/v1alpha1/policies:test"
tags: ["policies"]
---

# POST /v1alpha1/policies:test

`POST /v1alpha1/policies:test`

## Request

- Base URL: `https://prod-tt-sasportal.googleapis.com`
- URL: `https://prod-tt-sasportal.googleapis.com/v1alpha1/policies:test`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/sasportal`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/sasportal`
- TypeScript: <https://skmtc.dev/google/apis/prod-tt-sasportal/docs/v1alpha1/policies:test/post.ts> (a function with typed inputs; its response is checked against the schema)

Returns permissions that a caller has on the specified resource.

## Request body

- SasPortalTestPermissionsRequest: Request message for `TestPermissions` method.
  - `resource` string: Required. The resource for which the permissions are being requested.
  - `permissions` string[]: The set of permissions to check for the `resource`.

## Response `200`

Successful response

- SasPortalTestPermissionsResponse: Response message for `TestPermissions` method.
  - `permissions` string[]: A set of permissions that the caller is allowed.

## Changes

- **2026-10-10** `33012279ba52`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/sasportal` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/sasportal` was removed from the endpoint's security scheme `Oauth2c`

[Operation history](https://skmtc.dev/google/apis/prod-tt-sasportal/changes/v1alpha1/policies:test/post.md)

---

[API](https://skmtc.dev/google/apis/prod-tt-sasportal.md) - [All operations](https://skmtc.dev/google/apis/prod-tt-sasportal/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/prod-tt-sasportal/revisions/33012279ba52?raw)
