Skip to main content

access_users

Creates, updates, deletes, gets or lists an access_users resource.

Overview

Nameaccess_users
TypeResource
Idcloudflare.zero_trust.access_users

Fields

The following fields are returned by SELECT queries:

Get users response

NameDatatypeDescription
idstringUUID. (example: f174e90a-fafe-4643-bbbc-4a0ed4fc8415)
namestringThe name of the user. (example: Jane Doe)
access_seatbooleanTrue if the user has authenticated with Cloudflare Access.
active_device_countnumberThe number of active devices registered to the user.
created_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)
emailstring (email)The email of the user. (example: jdoe@example.com)
gateway_seatbooleanTrue if the user has logged into the WARP client.
last_successful_loginstring (date-time)The time at which the user last successfully logged in. (example: 2020-07-01T05:20:00Z)
seat_uidstringThe unique API identifier for the Zero Trust seat.
uidstringThe unique API identifier for the user.
updated_atstring (date-time) (example: 2014-01-01T05:20:00.12345Z)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_by_accountselectaccount_idname, email, search, page, per_pageGets a list of users for an account.

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.
emailstring
namestring
pageinteger
per_pageinteger

SELECT examples

Gets a list of users for an account.

SELECT
id,
name,
access_seat,
active_device_count,
created_at,
email,
gateway_seat,
last_successful_login,
seat_uid,
uid,
updated_at
FROM cloudflare.zero_trust.access_users
WHERE account_id = '{{ account_id }}' -- required
AND name = '{{ name }}'
AND email = '{{ email }}'
AND search = '{{ search }}'
AND page = '{{ page }}'
AND per_page = '{{ per_page }}'
;