policy_tests_users
Creates, updates, deletes, gets or lists a policy_tests_users resource.
Overview
| Name | policy_tests_users |
| Type | Resource |
| Id | cloudflare.zero_trust.policy_tests_users |
Fields
The following fields are returned by SELECT queries:
- list_by_account
Get an Access policy tester users page response.
| Name | Datatype | Description |
|---|---|---|
id | string | UUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415) |
name | string | The name of the user. (example: Jane Doe) |
email | string (email) | The email of the user. (example: jdoe@example.com) |
status | string | Policy evaluation result for an individual user. (approved, blocked, error) (example: approved) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_account | select | account_id, policy_test_id | page, per_page, status | Fetches a single page of user results from an Access policy test. |
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. |
policy_test_id | string | |
page | integer | |
per_page | integer | |
status | string | Filter users by their policy evaluation status. |
SELECT examples
- list_by_account
Fetches a single page of user results from an Access policy test.
SELECT
id,
name,
email,
status
FROM cloudflare.zero_trust.policy_tests_users
WHERE account_id = '{{ account_id }}' -- required
AND policy_test_id = '{{ policy_test_id }}' -- required
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
AND status = '{{ status }}'
;