Generating temporary access pass(TAP) at 8 am BST on user's joining date and sending it to a specific email address - is it possible? using LCW and custom logic app

VedaPraneetha Edala 5 Reputation points
2026-06-09T09:03:01.6133333+00:00

I'm doing a Entra ID Gov POC, includes Workday-AD provisioning, JML, Access reviews. I also want to test generating TAP and sent to manager's email for my POC.
I will use the LCW to trigger on user's joining date and have a custom task created. (because I need to generate TAP only at 8am BST time - this is not something possible using the default/available Generate TAP task).

My custom task should check for the time, generate a TAP and send it to manager's mail address. But my managers are also test accounts and don't have a mailbox assigned yet(not planning to have one as of now for POC).
If I give my email address (or maybe a shared email address) just for the mail attribute for testing purpose, will this work? Any gotchas to keep in mind?

Also is it possible to do it that way? I generate a TAP first at the specific time, need to capture it, and send it to a specific email address - all via a custom task using logic app.

Possible ways I was thinking of:
-I'm looking to adding another mail in 'To' or 'cc' so that TAP can be captured and sent to me directly - if it allows, just for PoC testing.
-I will only add 'mail' attribute for these test users (no proxy, mailnickname, etc). I just want to demo the generated TAP being sent via email. Any concerns related to smtp, licenses, mailnickname, any other attirbutes? Once the user is synced to Entra (via cloud sync) will it cause any issue because two users have same email address and this article says when syncing to Entra it will automatically add proxy and other values from upn?

Windows for business | Windows Server | Directory services | Active Directory

1 answer

Sort by: Oldest
  1. AI answer

    2026-06-09T09:03:26.8266667+00:00

    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 temporaryAccessPass so 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:

    1. The user must have a populated manager attribute.
    2. The manager must have a populated mail attribute.
    3. The TAP tenant policy must be enabled, and the selected activation duration and one‑time‑use settings must be within the policy range.
    4. 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 mail attribute 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 mail attribute 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 temporaryAccessPass dynamic attribute in the customized email body/subject.
    • The documentation does not describe additional requirements such as proxyAddresses or mailNickname for these workflow email tasks; it only calls out the mail attribute 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 employeeHireDate as 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:
      1. Triggers based on employeeHireDate (for example, two days before hire date).
      2. Uses the Generate Temporary Access Pass and send via email to user's manager task.
      3. Requires mail and manager attributes on the employee, and mail on the manager.
      4. Requires TAP policy enabled and the user enabled for TAP.

    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:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.