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}'])
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-17 UTC."],[[["\u003cp\u003eThis endpoint validates a CEL expression against IAP restrictions using a POST request to a specified resource name.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a resource \u003ccode\u003ename\u003c/code\u003e in the path and a user input \u003ccode\u003eexpression\u003c/code\u003e in the query string to be validated.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must be empty, and a successful response will also have an empty response body.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"],["\u003cp\u003eDepending on the resource type specified in the request, one of several \u003ccode\u003eiap\u003c/code\u003e related IAM permissions is needed to execute the request.\u003c/p\u003e\n"]]],[],null,["# Method: validateAttributeExpression\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n- [Try it!](#try-it)\n\nValidates that a given CEL expression conforms to IAP restrictions.\n\n### HTTP request\n\n`POST https://iap.googleapis.com/v1/{name=**}:validateAttributeExpression`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is empty.\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp).\n\n### IAM Permissions\n\nRequires **one of** the following [IAM](https://cloud.google.com/iam/docs) permissions on the `name` resource, depending on the resource type:\n\n- `iap.folders.updateSettings`\n- `iap.organizations.updateSettings`\n- `iap.projects.updateSettings`\n- `iap.web.updateSettings`\n- `iap.webServices.updateSettings`\n- `iap.webServiceVersions.updateSettings`\n- `iap.webTypes.updateSettings`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]