Skip to main content

authenticator_enrollments

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

Overview

Nameauthenticator_enrollments
TypeResource
Idokta.users.authenticator_enrollments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the authenticator enrollment
namestringThe authenticator display name
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstring (date-time)Timestamp when the authenticator enrollment was created
keystringA human-readable string that identifies the authenticator
lastUpdatedstring (date-time)Timestamp when the authenticator enrollment was last updated
profileobjectDefines the authenticator specific parameters
statusstringStatus of the enrollment
typestringThe type of authenticator

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_authenticator_enrollmentsselectsubdomainLists all authenticator enrollments of the specified user
get_authenticator_enrollmentselectsubdomainRetrieves a user's authenticator enrollment by enrollmentId
create_authenticator_enrollmentinsertuserId, subdomain, data__authenticatorId, data__profileCreates a Phone authenticator enrollment that's automatically activated
create_tac_authenticator_enrollmentinsertuserId, subdomain, data__authenticatorIdCreates an auto-activated Temporary access code (TAC) authenticator enrollment
delete_authenticator_enrollmentdeletesubdomainDeletes an existing enrollment for the specified user. The user can enroll the authenticator again.

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)
userIdstringID of an existing Okta user

SELECT examples

Lists all authenticator enrollments of the specified user

SELECT
id,
name,
_links,
created,
key,
lastUpdated,
profile,
status,
type
FROM okta.users.authenticator_enrollments
WHERE subdomain = '{{ subdomain }}' -- required;

INSERT examples

Creates a Phone authenticator enrollment that's automatically activated

INSERT INTO okta.users.authenticator_enrollments (
data__authenticatorId,
data__profile,
userId,
subdomain
)
SELECT
'{{ authenticatorId }}' --required,
'{{ profile }}' --required,
'{{ userId }}',
'{{ subdomain }}'
;

DELETE examples

Deletes an existing enrollment for the specified user. The user can enroll the authenticator again.

DELETE FROM okta.users.authenticator_enrollments
WHERE subdomain = '{{ subdomain }}' --required;