Skip to main content

authentication_email_methods

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

Overview

Nameauthentication_email_methods
TypeResource
Identra_id.users.authentication_email_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])$)
emailAddressstringThe email address registered to this user.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectuser_id, email_authentication_method_idThe email address registered to a user for authentication.
listselectuser_idThe email address registered to a user for authentication.
insertinsertuser_idSet a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. Self-service operations aren't supported.
updateupdateuser_id, email_authentication_method_idUpdate a user's email address represented by an emailAuthenticationMethod object. Self-service operations aren't supported.
deletedeleteuser_id, email_authentication_method_idIf-MatchDeletes a user's emailAuthenticationMethod 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
email_authentication_method_idstringThe unique identifier of emailAuthenticationMethod
user_idstringThe unique identifier of user
If-MatchstringETag

SELECT examples

The email address registered to a user for authentication.

SELECT
id,
createdDateTime,
emailAddress
FROM entra_id.users.authentication_email_methods
WHERE user_id = '{{ user_id }}' -- required
AND email_authentication_method_id = '{{ email_authentication_method_id }}' -- required
;

INSERT examples

Set a user's emailAuthenticationMethod object. Email authentication is a self-service password reset method. A user may only have one email authentication method. Self-service operations aren't supported.

INSERT INTO entra_id.users.authentication_email_methods (
id,
createdDateTime,
emailAddress,
user_id
)
SELECT
'{{ id }}',
'{{ createdDateTime }}',
'{{ emailAddress }}',
'{{ user_id }}'
RETURNING
id,
createdDateTime,
emailAddress
;

UPDATE examples

Update a user's email address represented by an emailAuthenticationMethod object. Self-service operations aren't supported.

UPDATE entra_id.users.authentication_email_methods
SET
id = '{{ id }}',
createdDateTime = '{{ createdDateTime }}',
emailAddress = '{{ emailAddress }}'
WHERE
user_id = '{{ user_id }}' --required
AND email_authentication_method_id = '{{ email_authentication_method_id }}' --required
RETURNING
id,
createdDateTime,
emailAddress;

DELETE examples

Deletes a user's emailAuthenticationMethod object.

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