Skip to main content

authentication_temporary_access_pass_methods

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

Overview

Nameauthentication_temporary_access_pass_methods
TypeResource
Identra_id.users.authentication_temporary_access_pass_methods

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
createdDateTimestring (date-time)Represents the date and time when an entity was created. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
isUsablebooleanThe state of the authentication method that indicates whether it's currently usable by the user.
isUsableOncebooleanDetermines whether the pass is limited to a one-time use. If true, the pass can be used once; if false, the pass can be used multiple times within the Temporary Access Pass lifetime.
lifetimeInMinutesnumber (int32)The lifetime of the Temporary Access Pass in minutes starting at startDateTime. Must be between 10 and 43200 inclusive (equivalent to 30 days).
methodUsabilityReasonstringDetails about the usability state (isUsable). Reasons can include: EnabledByPolicy, DisabledByPolicy, Expired, NotYetValid, OneTimeUsed.
startDateTimestring (date-time)The date and time when the Temporary Access Pass becomes available to use and when isUsable is true is enforced. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
temporaryAccessPassstringThe Temporary Access Pass used to authenticate. Returned only on creation of a new temporaryAccessPassAuthenticationMethod object; Hidden in subsequent read operations and returned as null with GET.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectuser_id, temporary_access_pass_authentication_method_idRetrieve a user's single temporaryAccessPassAuthenticationMethod object.
listselectuser_idRetrieve a list of a user's temporaryAccessPassAuthenticationMethod objects and their properties. This API will only return a single object in the collection as a user can have only one Temporary Access Pass method.
insertinsertuser_idCreate a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created.
deletedeleteuser_id, temporary_access_pass_authentication_method_idIf-MatchDelete a users's temporaryAccessPassAuthenticationMethod object.

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
temporary_access_pass_authentication_method_idstringThe unique identifier of temporaryAccessPassAuthenticationMethod
user_idstringThe unique identifier of user
If-MatchstringETag

SELECT examples

Retrieve a user's single temporaryAccessPassAuthenticationMethod object.

SELECT
id,
createdDateTime,
isUsable,
isUsableOnce,
lifetimeInMinutes,
methodUsabilityReason,
startDateTime,
temporaryAccessPass
FROM entra_id.users.authentication_temporary_access_pass_methods
WHERE user_id = '{{ user_id }}' -- required
AND temporary_access_pass_authentication_method_id = '{{ temporary_access_pass_authentication_method_id }}' -- required
;

INSERT examples

Create a new temporaryAccessPassAuthenticationMethod object on a user. A user can only have one Temporary Access Pass that's usable within its specified lifetime. If the user requires a new Temporary Access Pass while the current Temporary Access Pass is valid, the admin can create a new Temporary Access Pass for the user, the previous Temporary Access Pass will be deleted, and a new Temporary Access Pass will be created.

INSERT INTO entra_id.users.authentication_temporary_access_pass_methods (
id,
createdDateTime,
isUsable,
isUsableOnce,
lifetimeInMinutes,
methodUsabilityReason,
startDateTime,
temporaryAccessPass,
user_id
)
SELECT
'{{ id }}',
'{{ createdDateTime }}',
{{ isUsable }},
{{ isUsableOnce }},
{{ lifetimeInMinutes }},
'{{ methodUsabilityReason }}',
'{{ startDateTime }}',
'{{ temporaryAccessPass }}',
'{{ user_id }}'
RETURNING
id,
createdDateTime,
isUsable,
isUsableOnce,
lifetimeInMinutes,
methodUsabilityReason,
startDateTime,
temporaryAccessPass
;

DELETE examples

Delete a users's temporaryAccessPassAuthenticationMethod object.

DELETE FROM entra_id.users.authentication_temporary_access_pass_methods
WHERE user_id = '{{ user_id }}' --required
AND temporary_access_pass_authentication_method_id = '{{ temporary_access_pass_authentication_method_id }}' --required
AND If-Match = '{{ If-Match }}'
;