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 (app, email, federated, password, phone, security_key, security_question, tac)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_authenticator_enrollmentselectuserId, enrollmentId, subdomaindiscloseIdentifiersRetrieves a user's authenticator enrollment by enrollmentId
list_authenticator_enrollmentsselectuserId, subdomaindiscloseIdentifiersLists all authenticator enrollments of the specified user
create_authenticator_enrollmentinsertuserId, subdomain, authenticatorId, profileCreates a Phone authenticator enrollment that's automatically activated
create_tac_authenticator_enrollmentinsertuserId, subdomain, authenticatorIdCreates an auto-activated Temporary access code (TAC) authenticator enrollment
delete_authenticator_enrollmentdeleteuserId, enrollmentId, subdomainDeletes 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
enrollmentIdstringUnique identifier of an enrollment
subdomainstring(default: my-org)
userIdstringID of an existing Okta user
discloseIdentifiersarrayIndicates whether or not the identifier of an authenticator enrollment is disclosed or anonymized. If it's included in the operation query, then the identifier of the authenticator enrollment (the actual phone number, for example) is included in the response.

SELECT examples​

Retrieves a user's authenticator enrollment by enrollmentId

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

INSERT examples​

Creates a Phone authenticator enrollment that's automatically activated

INSERT INTO okta.users.authenticator_enrollments (
authenticatorId,
profile,
userId,
subdomain
)
SELECT
'{{ authenticatorId }}' /* required */,
'{{ profile }}' /* required */,
'{{ userId }}',
'{{ subdomain }}'
RETURNING
id,
name,
_links,
created,
key,
lastUpdated,
profile,
status,
type
;

DELETE examples​

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

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