Skip to main content

GUEST/IDM/CONNECT

Identity Expiration Notification - Identity

Description

This email is sent to any affected IDM identity to notify them that their record is set to expire. This email will be sent to all identities expiring in the date ranges configured via the IDM / Configuration / Notification / Identity Expiration page.

Identity information displayed includes:

  • Number of days until expiration

  • Date of expiration

Note

The first and last name will be linked to the Identity's record in IDM

Email
email_5.png

Template

<table width="700" cellpadding="16" style="font-size: 11px;font-family: Arial, lucida console, sans-serif;">
    <tr>
        <td align="left" style="background-color: black; color: white; font-size:18px; font-weight: bold;">
      Upcoming identity expiration for Identity
        </td>
    </tr>
    <tr>
        <td>
            <p>@Model.Greeting</p>
            <p>Please be advised that your identity is set to expire in @Model.IdentityExpiration.DaysLeft Day(s) on @Model.IdentityExpiration.ExpirationDate.Date.ToShortDateString()
            <p></p>
            <p>Thank you.</p>
        </td>
    </tr>
    <tr>
        <td align="left" style="background-color: #b2b3b3; padding: 12px;"></td>
    </tr>
</table>
Razor Elements

Element

Description

@exp.DaysLeft

Displays the number of days left until expiration as an integer

@exp.ExpirationDate

Displays the actual expiration date of the identity

@Model.Greeting

Displays a greeting that includes the Identity's first and last name

Warning

It is strongly recommended that these elements be used as-is with the only edits being to remove them if the information generated is not desired.

Using Razor Elements in Loops

Razor elements may be defined as part of a @foreach loop to iterate through a collection.

Example:

@foreach (var credentialsForDayLeft in Model.CredentialsByDayLeft)

In the example above:

  • Model.CredentialsByDayLeft is the collection provided by the template model

  • credentialsForDayLeft is a Razor element created for iteration

  • The element represents an individual item from the collection

Note

Razor elements created within a loop are locally scoped.

  • These elements are only available within the loop in which they are defined

  • They are not part of the main Model

  • They cannot be referenced outside of the loop

Additional Information:

  • Razor elements referencing @Model properties are available throughout the template.

  • Razor elements defined within loops are intended for temporary use when iterating through collections.

  • To reference data outside of a loop, use the appropriate @Model element.

Warning

Razor elements defined within a loop (for example, @credentialsForDayLeft) must only be used within that loop. Attempting to reference these elements outside of their scope will result in an error.