Entra ID Temporary Access Pass for Zero-Touch Onboarding
A production runbook for scoping, issuing, verifying, monitoring and rolling back Entra ID Temporary Access Pass during new hire onboarding.

Advertising disclosure: this article includes partner links. KBY may earn a commission if you sign up or buy through one, at no extra cost to you. How we make money.
Before you begin
- Basic Entra ID administration and role assignment
- Familiarity with Microsoft Graph PowerShell SDK
- Understanding of Conditional Access policy structure
Underlined words are defined in the KBY Lexicon. Tap or click one to see what it means.
Getting a new starter signed in on day one sounds like a small job, yet it decides whether their first morning is spent working or waiting on the help desk. How you hand over that first sign-in also matters for security, because a password left in a ticket or an email stays there. Temporary Access Pass gives each new hire a one-time, time-boxed way in instead.
#Operational requirement
You are going to be handed this task in your first month: a new starter joins on Monday and needs into Entra ID before their laptop even boots. If the current process is a service desk agent typing a temporary password into a ticket, or emailing it, stop and read this before you touch anything.
That password sits in plaintext in a mailbox or ticketing system until someone remembers to delete it. It will show up in an audit. It is also a live credential sitting in a system that is not designed to hold secrets.
Temporary Access Pass, TAP, is the correct fix. It is a time-boxed, revocable Entra ID authentication method that lets a new hire sign in exactly once, register Microsoft Authenticator as their primary method, and never see a traditional password.
Configure it badly and you get one of two failures: the new hire is locked out on day one while the helpdesk scrambles, or the policy is scoped too wide and TAP quietly becomes a standing bypass that any administrator can hand out. Neither is acceptable.
This runbook is the production-safe path: scoped policy, bounded lifetime, verified redemption, monitoring, and a rollback you can execute without panic.
#Prerequisites and required permissions
Confirm every item below before you make a single change. If any of these are missing, stop and escalate rather than working around them.
- Microsoft Entra ID P1 or P2 licensing on the tenant, which the Conditional Access exception in Step 5 requires.
- Authentication Policy Administrator role to configure the TAP method policy.
- Privileged Authentication Administrator or Authentication Administrator role to issue passes to individual users.
- Microsoft Graph PowerShell SDK installed, specifically the
Microsoft.Graph.Identity.SignInsmodule, plusMicrosoft.Graph.GroupsforGet-MgGroupMember. - Delegated or application permissions
Policy.ReadWrite.AuthenticationMethodandUserAuthenticationMethod.ReadWrite.All. - An HR-driven onboarding group or dynamic group already built. Do not enable TAP against All users under any circumstance.
- A change ticket raised and approved before you flip the policy state, even for a pilot group.
#Step 1: Scope the Temporary Access Pass method policy
Go to Entra ID, Authentication methods, Policies, Temporary Access Pass in the Entra admin centre. Set the state to Enable and change the target from All users to a named security group, for example sec-NewHireOnboarding. Do this through Graph PowerShell instead of the portal so the change is scriptable, repeatable and reviewable by someone other than you.
Before changing anything, read the current TAP configuration and save it to the change record. The update below is a PATCH that overwrites the existing TAP settings and targets, so you need the current values to restore later. Run it first against a pilot group, not a fleet-wide target. Confirm the property names and allowed values (lifetimes, length) against the Microsoft Graph reference for temporaryAccessPassAuthenticationMethodConfiguration, as the limits in your tenant may differ from the example values.
1Connect-MgGraph -Scopes "Policy.ReadWrite.AuthenticationMethod"
2
3# Read-only check and backup of the current TAP configuration
4Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId "TemporaryAccessPass" | ConvertTo-Json -Depth 10
5
6$params = @{
7 "@odata.type" = "#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration"
8 State = "enabled"
9 IsUsableOnce = $true
10 DefaultLifetimeInMinutes = 60
11 DefaultLength = 8
12 MinimumLifetimeInMinutes = 10
13 MaximumLifetimeInMinutes = 480
14 IncludeTargets = @(
15 @{
16 TargetType = "group"
17 Id = "<object ID of sec-NewHireOnboarding>"
18 }
19 )
20}
21
22Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId "TemporaryAccessPass" -BodyParameter $params
23
24# Verify the state and targeting afterwards
25Get-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId "TemporaryAccessPass" | ConvertTo-Json -Depth 10Expected result: the policy shows Enabled with the target group listed, not All users. Also export the whole policy with Get-MgPolicyAuthenticationMethodPolicy | ConvertTo-Json -Depth 10 and save it to the change record, and do the same export after the change. Checkpoint: open the target group membership and confirm no service accounts or shared mailboxes are present. TAP against a shared identity is exactly the kind of finding an auditor writes up.
#Step 2: Set lifetime and one-time-use parameters
Set a default lifetime of 60 minutes with one-time-use set to true. The pass exists to bootstrap a single sign-in for Authenticator registration, not to act as a recurring credential, so it must die the instant it is redeemed.
If your HR feed, Workday or SuccessFactors or similar, populates employeeHireDate, you can build a dynamic group on that attribute. employeeHireDate is a preview property in dynamic rules. It accepts a literal date, as below (which must be maintained), or the system.now keyword with an offset such as -plus p1d. Alternatively, drive membership of the onboarding group directly from HR provisioning.
1(user.employeeHireDate -ge "2026-07-01T00:00:00Z") -and (user.employeeHireDate -le "2026-07-31T23:59:59Z")Validate the rule syntax in the portal and test it against a known user before relying on it. Expected result: the group fills once dynamic membership processing completes after the HR-driven provisioning sync, which is not instant. Capture a screenshot or export of the rule and the member count on rollout day.
Checkpoint: dynamic group evaluation is not instant in most tenants. If you issue a pass before the user has actually landed in scope, policy evaluation will fail and you will spend twenty minutes debugging something that was simply a timing gap.

#Step 3: Issue a pass to a named new hire
Once the policy is confirmed enabled and the user is confirmed in scope, issue the pass individually. Never script this in bulk against a batch of accounts. Individual issuance keeps the audit trail tied to a named administrator action rather than an unattended job.
1Connect-MgGraph -Scopes "UserAuthenticationMethod.ReadWrite.All"
2
3$tap = New-MgUserAuthenticationTemporaryAccessPassMethod -UserId "j.smith@kbytech.com" -BodyParameter @{
4 lifetimeInMinutes = 60
5 isUsableOnce = $true
6}
7
8$tap.TemporaryAccessPassExpected result: a one-time alphanumeric value is returned. Log the request timestamp, your UPN and the target user’s UPN in the ticketing system. Do not log the pass value itself. Checkpoint: Graph shows this value exactly once. If you lose it before handing it over, delete the method and reissue a new one; Graph will not return the original value a second time.
Hand the pass to the new hire out of band. A verified phone call, a supervised in-person handover, or a video call where identity has already been checked against HR records are all acceptable. Email is not. Emailing the pass defeats the entire reason you moved off shared passwords.
#Step 4: Validate redemption and Authenticator registration
Have the new hire browse to https://aka.ms/mysecurityinfo and sign in using their UPN with the TAP value in place of a password. Expected result: the new hire is signed in to Security info, where they can add a sign-in method, and should register Microsoft Authenticator with push notifications and number matching enabled as the primary method.
Pull the sign-in log entry for that event. In the admin centre go to Entra ID, Monitoring & health, Sign-in logs, filter by user, confirm on the entry's Authentication Details tab that Temporary Access Pass was used, and export it into the onboarding evidence folder. Checkpoint: because the pass is one-time-use, redemption consumes it automatically. Run the command below and check isUsable and methodUsabilityReason to confirm the pass can no longer be used.
Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId "j.smith@kbytech.com"#Step 5: Build a bounded Conditional Access exception for the onboarding window
New hires rarely have a compliant or hybrid-joined device on day one. A blanket device-compliance requirement in Conditional Access will block their very first sign-in even after TAP succeeds. All applicable Conditional Access policies must be satisfied, so a separate policy cannot override that requirement.
Exclude only the onboarding group from the device-compliance policy, and cover the group with a narrowly scoped policy, for example CA100-Onboarding-DeviceGrace, requiring MFA. A Conditional Access policy has no expiry setting, so the exclusion would stay active indefinitely unless someone removes it.
Schedule a removal or disabling task for within 24 hours (manually, or through an automated process with approval) and track it in the change ticket. Do not leave this exception standing.
Expected result: the new hire authenticates on an unmanaged device long enough to enrol into Intune and reach a compliant state. Capture the Conditional Access policy JSON export and the scheduled removal task record with its due date. Checkpoint: check the exclusion list carefully. Nesting the wrong group here is a common mistake, and it can quietly exempt an entire department from device compliance rather than just the intended cohort.

#Change control and monitoring
Every state change to the TAP method policy, and every Conditional Access exception created against it, must be tied to a change ticket with a named approver. Log the before-and-after policy JSON as attachments on that ticket.
Set a recurring weekly check of user authentication methods (Entra ID, Authentication methods, Activity, or a Graph query), and confirm no TAP method remains active against any account outside the onboarding group.
A TAP can be created for any user but only accounts in the policy scope can sign in with it, so a leftover TAP becomes a live bypass the moment that account lands in scope, and it will not show up unless someone actually looks for it.
If your tenant has Microsoft Sentinel or a SIEM ingesting Entra sign-in logs, build an alert on authentication method equal to Temporary Access Pass combined with a target user outside the onboarding group’s object IDs. That alert should page someone, not sit in a dashboard nobody opens.
#Verification
Confirm three artefacts exist for every onboarding case before you close the ticket: the authentication method policy export from before and after Step 1, the sign-in log entry from Step 4 showing TAP redemption followed by Authenticator registration, and the record from Step 5 showing the Conditional Access exception was removed or disabled, or is scheduled for removal with a due date.
If any one of these three is missing, the case is not verified, regardless of whether the new hire successfully signed in.
#Common Traps
| Symptom | Likely cause | Fix |
|---|---|---|
| TAP option does not appear at sign-in | Policy still targets no groups, or dynamic group evaluation has not caught up with the new account | Confirm target group membership with Get-MgGroupMember; wait for dynamic membership processing to complete |
| Sign-in fails immediately after a previous successful redemption | One-time-use pass already consumed; helpdesk or user attempting reuse | Issue a fresh pass; a redeemed value is not designed for repeated sign-ins |
| Graph cmdlet returns an authorisation failure | The administrator account lacks Authentication Administrator or Privileged Authentication Administrator | Assign the correct role and re-authenticate the Graph session before retrying |
| Device-compliance Conditional Access still blocks sign-in after TAP succeeds | The onboarding group is not excluded from the device-compliance policy, or the user has not landed in the onboarding group yet | Verify group membership and exclusions; check the policy in report-only mode against the sign-in log |
| TAP still shown active weeks after the hire date | Redemption never happened (an unredeemed pass remains until it expires), or the lifetime was set too long | Confirm the user and the method ID first, then remove only that stale method and reissue with the correct parameters |
#Rollback
If a scoping error exposes TAP to the wrong population, or the pilot needs to be reversed, follow these steps in order and do not skip the logging step.
- Disable the TAP method configuration immediately by running
Update-MgPolicyAuthenticationMethodPolicyAuthenticationMethodConfiguration -AuthenticationMethodConfigurationId "TemporaryAccessPass" -BodyParameter @{ "@odata.type" = "#microsoft.graph.temporaryAccessPassAuthenticationMethodConfiguration"; State = "disabled" }. Once the exposure is contained, review the TAP configuration in the pre-change export saved in Step 1 and check whether it targeted a broad scope such as All users. Restore only the TAP configuration, not the whole authentication methods policy, using the same cmdlet, and only after the change approver confirms the settings to restore. - Remove any TAP methods issued in error with
Remove-MgUserAuthenticationTemporaryAccessPassMethod -UserId <upn> -TemporaryAccessPassAuthenticationMethodId <id>, confirming the user and method ID first. - If the dynamic group rule itself was wrong, remove the affected users manually and correct the rule before re-enabling anything.
- Remove the onboarding group from the device-compliance policy's exclusions, which ends the Step 5 exception, and keep
CA100-Onboarding-DeviceGracefor audit rather than deleting it. - Record the rollback action, the timestamp, and the reason in the change management system, referencing the original ticket number.
Following along? Tap a step’s number to tick it off.
#Operational Summary
A correctly scoped, time-boxed Temporary Access Pass removes the weakest link in most onboarding processes: the shared or emailed temporary password sitting in a mailbox.
The discipline that makes this safe in production is narrow targeting, one-time-use enforcement, passes issued individually with a traceable audit trail, weekly monitoring against stray active passes, and a Conditional Access exception that is removed on schedule rather than lingering for months.
A junior engineer who can enable the scoped policy, issue a pass, verify redemption in the sign-in logs, monitor for leftovers, and roll the entire change back cleanly has demonstrated a genuinely production-relevant identity governance skill, not a lab exercise.
Keep the ticket, the exports, and the log entries together for every case; that evidence trail is what turns a working configuration into a defensible one.
#Learning Objectives
By the end of this enrichment, an engineer should be able to state precisely why the temporaryAccessPassAuthenticationMethodConfiguration object must never target All users, and be able to demonstrate, using Graph queries rather than portal screenshots, that a given TAP is scoped, time-boxed, and fully consumed after redemption.
A second objective is fluency with the methodUsabilityReason property returned on a temporaryAccessPassMethod object. This field is the fastest diagnostic when a new hire reports that TAP sign-in failed: compare it with the documented methodUsabilityReason values, together with isUsable and isUsableOnce, to help narrow down the cause, and confirm in the sign-in log.
A third objective is being able to distinguish, in an audit conversation, between a policy-level export (Get-MgPolicyAuthenticationMethodPolicy) and a per-user method export (Get-MgUserAuthenticationTemporaryAccessPassMethod). Auditors frequently ask for both, and conflating them is a common junior mistake that stalls evidence review.
#Worked Example
Consider a helpdesk engineer issuing a pass at 08:55 for a new hire whose contracted start is 09:00. The dynamic group rule keys off employeeHireDate, and Entra ID's dynamic membership processing is not instant. Rather than issuing the pass on faith, the engineer first runs Get-MgGroupMember against sec-NewHireOnboarding and confirms the new hire's object ID is already present. Only then is New-MgUserAuthenticationTemporaryAccessPassMethod called.
After the pass is handed over by verified phone call and redeemed, the engineer queries the method object again: Get-MgUserAuthenticationTemporaryAccessPassMethod -UserId j.smith@kbytech.com. Check the isUsable and methodUsabilityReason properties on the returned object against the documented values rather than assuming the object is removed after redemption. A pass that has been redeemed should no longer be usable; if it still shows as usable, treat that as a problem and investigate.
The method object carries no redemption timestamp, so the engineer confirms the time of redemption from the sign-in log entry pulled in Step 4 and records it in the ticket.
#Practice Exercise
In a non-production tenant with Entra ID P1 or higher, create a test security group with a single disposable test account as its only member. Scope the TAP method policy to that group only, following Step 1, and export the before-and-after policy JSON as the article specifies.
Issue a one-time-use, 15-minute-lifetime pass to the test account. Immediately after issuing it, run Get-MgUserAuthenticationTemporaryAccessPassMethod against that account and record the methodUsabilityReason value returned before redemption; it should indicate the pass is currently valid, not yet consumed.
Redeem the pass by signing in as the test account at https://aka.ms/mysecurityinfo, then re-run the same Graph query. Check that the pass is no longer usable by reviewing isUsable and methodUsabilityReason. Then attempt to sign in again as the test account with the same consumed pass and confirm the sign-in fails.
Finally, execute the rollback sequence from the article against this test group only: disable the policy, remove any residual TAP method with Remove-MgUserAuthenticationTemporaryAccessPassMethod, and confirm the disabled state with a fresh Get-MgPolicyAuthenticationMethodPolicy export. This export will differ from your original pre-change export, because the TAP configuration is now disabled.
Restoring the TAP configuration from the original export is the step that returns the tenant to its starting state; after restoring, compare the exports again to check there is no drift in unrelated method policies.
#Related reading
Entra B2B ReadResponseFailure: Disposed HttpWebResponse
Microsoft Entra ID
Escrowing BitLocker Recovery Keys via Intune and Entra ID
Building a Governed AWS Landing Zone with Entra ID Federation
About this page
Credited to
Dates
Published
Sources
Found this useful? Follow KBY for more like it.
Recommended reading
More from KBY that goes with this article.
Related articles
Identity and Access Management
Configuring Entra ID PIM for Just-in-Time Admin Access
A hands-on runbook for converting a standing Entra ID admin role into a time-bound, MFA-gated PIM eligible assignment with staged rollout and audit evidence.
ReadArtificial Intelligence
Copilot Studio Entra Agent ID: Every New Agent Gets One and You Cannot Opt Out
Copilot Studio gives every new agent an Entra Agent ID, with no opt-out. What to keep enabled, check and migrate, and the licences Conditional Access needs.
ReadEnterprise IT Management
Part 6: Reset, Retire and Reuse Windows Autopilot Devices Safely in Intune
Autopilot Reset, Wipe and Fresh Start compared, a handover to a new user, and the safe order for retiring a device.
ReadDiscover more
Graduate Learning
- TutorialListing Disabled Users in Microsoft Entra ID with Read-Only Microsoft Graph PowerShell
- TutorialRevoking a User’s Sessions in Microsoft Entra ID After a Suspected Account Compromise
- TutorialFinding Why a User’s Sign-In Failed in the Microsoft Entra Sign-In Logs
- TutorialCreating a Dynamic Membership Group in Microsoft Entra ID and Validating Its Rule
Ops Playbook
- PlaybookProve Your Entra ID Break-Glass Accounts Still Work With a Quarterly Sign-In Drill
- PlaybookRetire SMS and Voice MFA in Entra ID Without Locking Users Out
- PlaybookRequire Phishing-Resistant MFA for Entra ID Admins With Authentication Strengths
- PlaybookEntra ID AADSTS7000222: Rotating Expired App Client Secrets Safely
Lexicon Definitions
Was this useful?
Reports go to the site owner and are used to correct pages. Corrections are listed at /corrections.
Build practical engineering skills.
Receive new lessons, learning paths, practical exercises and early-career guidance.
Comments
Add a thoughtful note on Entra ID Temporary Access Pass for Zero-Touch Onboarding. Comments are checked for spam and held for moderation before appearing.