user_policy_checks
Creates, updates, deletes, gets or lists a user_policy_checks resource.
Overview
| Name | user_policy_checks |
| Type | Resource |
| Id | cloudflare.zero_trust.user_policy_checks |
Fields
The following fields are returned by SELECT queries:
- list_by_account
- list_by_zone
Test Access policies response
| Name | Datatype | Description |
|---|---|---|
app_state | object | |
user_identity | object |
Test Access policies response
| Name | Datatype | Description |
|---|---|---|
app_state | object | |
user_identity | object |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_account | select | app_id, account_id | Tests if a specific user has permission to access an application. | |
list_by_zone | select | app_id, zone_id | Tests if a specific user has permission to access an application. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
account_id | string | The Cloudflare account ID. |
app_id | string | The Access application ID. |
zone_id | string | The Cloudflare zone ID. |
SELECT examples
- list_by_account
- list_by_zone
Tests if a specific user has permission to access an application.
SELECT
app_state,
user_identity
FROM cloudflare.zero_trust.user_policy_checks
WHERE app_id = '{{ app_id }}' -- required
AND account_id = '{{ account_id }}' -- required
;
Tests if a specific user has permission to access an application.
SELECT
app_state,
user_identity
FROM cloudflare.zero_trust.user_policy_checks
WHERE app_id = '{{ app_id }}' -- required
AND zone_id = '{{ zone_id }}' -- required
;