Skip to main content

policy_tests_users

Creates, updates, deletes, gets or lists a policy_tests_users resource.

Overview

Namepolicy_tests_users
TypeResource
Idcloudflare.zero_trust.policy_tests_users

Fields

The following fields are returned by SELECT queries:

Get an Access policy tester users page response.

NameDatatypeDescription
idstringUUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe name of the user. (example: Jane Doe)
emailstring (email)The email of the user. (example: jdoe@example.com)
statusstringPolicy evaluation result for an individual user. (approved, blocked, error) (example: approved)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectaccount_id, policy_test_idpage, per_page, statusFetches 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.

NameDatatypeDescription
account_idstringThe Cloudflare account ID.
policy_test_idstring
pageinteger
per_pageinteger
statusstringFilter users by their policy evaluation status.

SELECT examples

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 }}'
;