Lifecycle Workflows (LCW) can generate a Temporary Access Pass (TAP) and send it by email using the built‑in Generate Temporary Access Pass and send via email to user's manager task, or via Microsoft Graph using the same task definition.
From the built‑in task definition:
- Category:
joiner - Task: Generate Temporary Access Pass and send via email to user's manager
-
tapLifetimeInMinutes: TAP lifetime in minutes (10–43,200) -
tapIsUsableOnce: one‑time or multi‑use - Email content can be customized and can include the dynamic attribute
temporaryAccessPassso the TAP value is embedded in the email. - The TAP start time is based on the user’s
employeeHireDate(if that date/time is in the past at execution, current time is used).
Prerequisites for this built‑in task:
- The user must have a populated manager attribute.
- The manager must have a populated mail attribute.
- The TAP tenant policy must be enabled, and the selected activation duration and one‑time‑use settings must be within the policy range.
- The target user must not have any other authentication methods, sign‑ins, or Microsoft Entra role assignments.
Regarding email delivery and attributes:
- Email tasks in Lifecycle Workflows support different recipient options, including Manager mail attribute and User mail attribute, and can be customized under Basics and Email Customization.
- Dynamic attributes available in customized email bodies/subjects include
temporaryAccessPass,managerEmail,userDisplayName,userEmployeeHireDate, etc. - The platform only requires that the mail attribute be populated for the chosen recipient; it does not require that the manager have a full mailbox in the same sense as a production user. For PoC, setting the manager’s
mailattribute to a test or shared address satisfies the built‑in task prerequisites. - Additional CC recipients are only available when the primary recipient is the user or the manager. Multiple CC recipients are copied on a single email.
For the PoC scenarios described:
- Using a test manager account whose
mailattribute is set to a shared or personal test email address is supported by the built‑in task, as long as the manager attribute and manager’s mail attribute are populated. - The TAP value can be included in the email using the
temporaryAccessPassdynamic attribute in the customized email body/subject. - The documentation does not describe additional requirements such as
proxyAddressesormailNicknamefor these workflow email tasks; it only calls out themailattribute for the manager and user.
For timing at exactly 08:00 BST and custom Logic Apps:
- The provided documentation covers using Lifecycle Workflows and the built‑in TAP task, and using Microsoft Graph with the same task definition. It does not describe Logic App–based custom tasks or time‑of‑day scheduling beyond the use of
employeeHireDateas the TAP start time. - It does state that the TAP lifetime starts at
employeeHireDate(or current time if the hire date is already in the past), so precise 08:00 BST control would need to align the hire date/time and workflow execution with that behavior.
For onboarding PoC using Graph/LCW tutorial:
- The tutorial shows configuring a workflow that:
- Triggers based on
employeeHireDate(for example, two days before hire date). - Uses the Generate Temporary Access Pass and send via email to user's manager task.
- Requires
mailandmanagerattributes on the employee, andmailon the manager. - Requires TAP policy enabled and the user enabled for TAP.
- Triggers based on
The documentation in context does not describe conflicts or errors arising from multiple users sharing the same mail value, nor automatic behavior around proxyAddresses or mailNickname in this scenario. It only specifies that the relevant mail attributes must be populated for the workflow tasks to run.
References: