# Method: validateAttributeExpression

- [HTTP request](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.request_body)
- [Response body](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.aspect)
- [IAM Permissions](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#body.aspect_1)
- [Try it!](https://docs.cloud.google.com/iap/docs/reference/rest/v1/TopLevel/validateAttributeExpression#try-it)

Validates that a given CEL expression conforms to IAP restrictions.

### HTTP request

`POST https://iap.googleapis.com/v1/{name=**}:validateAttributeExpression`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `name` | `string` Required. The resource name of the IAP protected resource. |

### Query parameters

| Parameters ||
|---|---|
| `expression` | `string` Required. User input string expression. Should be of the form `attributes.saml_attributes.filter(attribute, attribute.name in ['{attribute_name}', '{attribute_name}'])` |

### Request body

The request body must be empty.

### Response body

If successful, the response body is empty.

### Authorization scopes

Requires the following OAuth scope:

- `https://www.googleapis.com/auth/cloud-platform`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).

### IAM Permissions

Requires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource, depending on the resource type:

- `iap.folders.updateSettings`
- `iap.organizations.updateSettings`
- `iap.projects.updateSettings`
- `iap.web.updateSettings`
- `iap.webServices.updateSettings`
- `iap.webServiceVersions.updateSettings`
- `iap.webTypes.updateSettings`

For more information, see the [IAM documentation](https://cloud.google.com/iam/docs).