Skip to main content

user_devices

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

Overview

Nameuser_devices
TypeResource
Idokta.users.user_devices

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
createdstring (date-time)Timestamp when the device was created
deviceobject
deviceUserIdstringUnique key for the user device link

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_user_devicesselectsubdomainLists all devices enrolled by a user.

> Note: To list all devices registered to an org, use the List all devices endpoint in the Devices API.

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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)

SELECT examples

Lists all devices enrolled by a user.

> Note: To list all devices registered to an org, use the List all devices endpoint in the Devices API.

SELECT
created,
device,
deviceUserId
FROM okta.users.user_devices
WHERE subdomain = '{{ subdomain }}' -- required;