---
title: "POST /v1/projects/{projectsId}/locations/{locationsId}/skills/{skillsId}:testIamPermissions"
method: POST
path: "/v1/projects/{projectsId}/locations/{locationsId}/skills/{skillsId}:testIamPermissions"
tags: ["projects"]
---

# POST /v1/projects/{projectsId}/locations/{locationsId}/skills/{skillsId}:testIamPermissions

`POST /v1/projects/{projectsId}/locations/{locationsId}/skills/{skillsId}:testIamPermissions`

## Request

- Base URL: `https://agentregistry.googleapis.com`
- URL: `https://agentregistry.googleapis.com/v1/projects/{projectsId}/locations/{locationsId}/skills/{skillsId}:testIamPermissions`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/agentregistry.read-only`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/agentregistry.read-only`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/agentregistry.read-write`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/agentregistry.read-write`
  - 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/cloud-platform.read-only`
    - 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.read-only`

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `skillsId` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GoogleIamV1TestIamPermissionsRequest: Request message for `TestIamPermissions` method.
  - `permissions` string[]: The set of permissions to check for the `resource`. Permissions with wildcards (such as `*` or `storage.*`) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).

## Response `200`

Successful response

- GoogleIamV1TestIamPermissionsResponse: Response message for `TestIamPermissions` method.
  - `permissions` string[]: A subset of `TestPermissionsRequest.permissions` that the caller is allowed.

## Changes

- **2026-11-18** `c5107f8b743d`: 4 info
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-13** `e754d656dbb8`: 4 info
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/agentregistry.read-only` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform.read-only` was removed from the endpoint's security scheme `Oauth2c`
- …earlier changes not shown

[Operation history](https://skmtc.dev/google/apis/agentregistry/changes/v1/projects/:projectsId/locations/:locationsId/skills/:skillsId:testIamPermissions/post.md)

---

[API](https://skmtc.dev/google/apis/agentregistry.md) - [All operations](https://skmtc.dev/google/apis/agentregistry/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/agentregistry/revisions/c5107f8b743d?raw)
