Access Group Expiration - CONNECT Admin
Description
This email is sent to any CONNECT Administrators to notify them of any identities that have upcoming access group expirations. This email is enabled or disabled via the CONNECT > Configuration > Notification > Access Groups Page. When enabled this will be sent at the time specified as the Time of Day (UTC) value.
Identity information displayed includes:
Number of days until expiration
Date of expiration of Access Group
Identity first and last name
Identity's employee number
Identity's phone number
Identity's Manager's first name and last name

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 access assignment expirations to Identity
</td>
</tr>
<tr>
<td>
<p>@Model.Greeting</p>
<p>Please be advised that the following identity's access assignments are set to expire.</p>
<ul>
@foreach (var agafdl in Model.AccessGroupAssignmentsByDayLeft)
{
<li>Next @agafdl.DaysLeft Day(s) - @agafdl.ExpirationDate.ToString("yyyy-MM-dd")</li>
<ul>
@foreach (var aga in agafdl.AccessGroupAssignments)
{
<li>@aga.AccessGroupName</li>
}
</ul>
<p></p>
}
</ul>
<p>Thank you.</p>
</td>
</tr>
<tr>
<td align="left" style="background-color: #b2b3b3; padding: 12px;"></td>
</tr>
</table>Razor Elements
Warning
It is recommended that these elements be used as stated with the only edits being to remove them if the information generated is not required.
Element | Description |
|---|---|
@agafdl.DaysLeft | Displays the number of days left until expiration as an integer |
@agafdl.ExpirationDate | Displays the actual expiration date of the identity's access group |
@aga.ActionUrl | This will represent a URL that will point to the identity's record |
@aga.FirstName | Displays the identity's first name |
@aga.LastName | Displays the identity's last name |
@aga.EmployeeNumber | Displays the identity's employee number |
@aga.AccessGroupName | Displays the access group name that is expiring |
@aga.Number | Displays the identity's phone number |
@aga.ManagedByFirstName | Displays the first name of the identity's manager |
@aga.ManagedByFirstName | Displays the last name of the identity's manager |
Note
@aga.ActionUrl is a dynamic value and will have elements that change based on the email templates.
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.CredentialsByDayLeftis the collection provided by the template modelcredentialsForDayLeftis a Razor element created for iterationThe 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
ModelThey cannot be referenced outside of the loop
Additional Information:
Razor elements referencing
@Modelproperties 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
@Modelelement.
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.