Opens on Sign-in problems. Search always covers all 61 fixes in every category. Links like ?cat=devices, ?q=lockout or ?cat=all open a filtered view. A situation filters the same list; a search or category chip clears it. Try ?path=signin.
Searching all categories.
| Fix | Category | What to do |
|---|---|---|
| Decode an AADSTS sign-in error | Sign-in problems | A user sees an AADSTS code: look it up first, then follow the fix. Steps and linksA user sees an AADSTS code, or a sign-in log entry shows one. Look it up in the decoder, then follow the fix. The most common codes: |
| Find out why Conditional Access blocked a sign-in | Sign-in problems | Read the Conditional Access tab of the failed sign-in, then test with the What If tool. Steps and linksOpen the failed event in the sign-in logs and read its Conditional Access tab to see which policy applied and why, then use the sign-in diagnostic or the What If tool (Troubleshoot sign-in problems with Conditional Access (opens in a new tab); What If tool (opens in a new tab)). |
| Export sign-in logs for a failure you are chasing | Sign-in problems | When the portal view isn’t enough, export sign-ins with CA status and failure reason to CSV. Steps and linksExport sign-ins with Conditional Access status, failure reason and client app, then filter the CSV. |
| Check whether it’s Microsoft, not you | Sign-in problems | Check service status and known update issues before an hour of troubleshooting. Steps and linksBefore you spend an hour troubleshooting, check service status and known Microsoft update issues. |
| Unlock a user locked out by smart lockout (AADSTS50053) | Sign-in problems | An admin password reset unlocks the cloud account now; SSPR with “I forgot my password” resets the lockout too. Steps and linksBy default smart lockout locks an account after 10 failed attempts (three in US Government tenants); the first lockout is one minute and gets longer after repeated failures. An admin can unlock a cloud account without waiting by resetting the password, and a user who picks I forgot my password in SSPR resets the lockout to zero (How smart lockout works (opens in a new tab)). Changing the threshold or duration needs Microsoft Entra ID P1 (Manage smart lockout values (opens in a new tab)). |
| Stop repeated sign-in or MFA prompts | Sign-in problems | A user can sign in, but keeps getting password or MFA prompts. Check sign-in frequency, persistent browser session, and conflicting Remember MFA settings. Steps and linksThis is for a user who can sign in, but is prompted for a password or MFA again and again. That is a session-lifetime issue, not a Conditional Access block. If the sign-in actually fails, use Find out why Conditional Access blocked a sign-in instead (Microsoft Entra multifactor authentication prompts and session lifetime (opens in a new tab)). Microsoft Entra ID's default sign-in frequency is a rolling 90-day window. The most restrictive session setting in the tenant wins. Combining Remember multifactor authentication with Show option to remain signed in, or leaving Remember MFA enabled alongside Conditional Access Sign-in frequency, can prompt users more often than you expect (Microsoft Entra multifactor authentication prompts and session lifetime (opens in a new tab); Configure adaptive session lifetime policies (opens in a new tab)). You'll need: at least Conditional Access Administrator to review or change session controls (Microsoft Entra ID P1 or P2). To review Show option to remain signed in, the session-lifetime article signs you in as a Global Administrator. To review Remember MFA, sign in as at least an Authentication Policy Administrator. Microsoft Entra ID Free or Microsoft 365 Apps tenants use the Stay signed in? branding setting instead of Conditional Access session controls. Steps
If that didn't work
Find out why Conditional Access blocked a sign-in · Test a Conditional Access policy before you enforce it · Token lifetimes Microsoft Learn sources
|
| Reset MFA for a user who lost or replaced their phone | MFA & passwords | Require re-register MFA on the user’s Authentication methods page; they set up a new method at next sign-in. Steps and linksAn Authentication Administrator can select Require re-register MFA on the user’s Authentication methods page; the user is asked to set up a new method at the next sign-in. Users can change their own methods in Security info (aka.ms/mysecurityinfo) (Manage a user’s authentication methods (opens in a new tab)). Temporary Access Pass guide · aka.ms/mysecurityinfo (opens in a new tab) |
| Find users with no MFA method registered | MFA & passwords | See who isn’t MFA-capable yet before you tighten MFA or Conditional Access. Steps and linksBefore you tighten MFA or Conditional Access, see who isn’t MFA-capable yet with the official registration details report. |
| Reset a user’s password as an admin | MFA & passwords | Password Administrator or higher: Users > select the user > Reset password, then hand over the temporary password. Steps and linksSign in as at least a Password Administrator, go to Entra ID > Users, select the user and choose Reset password. Microsoft Entra ID generates a temporary password; the user must change it at the next sign-in. For users synced from on-premises AD you can only reset if password writeback is on and the domain is managed; federated domains must be changed on-premises. You can’t reset passwords for guests whose home is another tenant (Reset a user’s password (opens in a new tab)). |
| Get a user with no working method back in (Temporary Access Pass) | MFA & passwords | Issue a time-limited Temporary Access Pass so the user can register Authenticator or a passkey. Steps and linksA Temporary Access Pass lets a user sign in and register a passwordless method such as Authenticator or a passkey. Enable the Temporary Access Pass policy under Authentication methods > Policies first, then on the user’s Authentication methods page select Add authentication method (Temporary Access Pass (opens in a new tab)). Temporary Access Pass guide · Script: Create a Temporary Access Pass |
| User can’t use self-service password reset | MFA & passwords | “Your administrator has not enabled you to use this feature” usually means SSPR scope, license or registration. Steps and linksCheck that SSPR is set to Selected or All and the user is in the enabled group (only one group can be chosen in the admin center; nested groups are supported), that the user has a license, and that they registered enough methods. The SSPR_00xx code on the error tells you which one; SSPR_0010 means password writeback isn’t enabled (SSPR errors a user might see (opens in a new tab)). |
| Find users still on per-user MFA | MFA & passwords | Report who is per-user MFA Enabled or Enforced before you move to Conditional Access. Steps and linksPer-user MFA states can be read with Microsoft Entra PowerShell (Manage per-user MFA (opens in a new tab)). Move those users to Conditional Access or security defaults, then turn per-user MFA off. |
| SSPR succeeded in the cloud, but the on-premises password didn't change | MFA & passwords | Self-service password reset or change appears to work in Microsoft Entra ID, but the Active Directory password is unchanged. Troubleshoot password writeback. Steps and linksUse this when the user can complete self-service password reset or a password change in Microsoft Entra ID, but the on-premises Active Directory password does not update. If SSPR is not offered at all ("Your administrator has not enabled you to use this feature"), start with User can't use self-service password reset instead. Password writeback, enabled with Microsoft Entra Connect or Microsoft Entra Cloud Sync, writes cloud password changes back to the on-premises directory in real time (Troubleshoot self-service password reset writeback (opens in a new tab)). It needs at least a Microsoft Entra ID P1 license (Tutorial: Enable Microsoft Entra self-service password reset writeback (opens in a new tab)). You'll need: Hybrid Identity Administrator to check or change On-premises integration in the Microsoft Entra admin center, plus administrator access on the Microsoft Entra Connect server and sufficient Active Directory rights to inspect the connector account. Steps
If that didn't work
User can't use self-service password reset · Self-Service Password Reset with Password Writeback · An on-premises change isn’t showing in Microsoft Entra ID Microsoft Learn sources
|
| Stop cloud passwords expiring (whole tenant or one account) | MFA & passwords | Older tenants can still have a 90-day expiry. Set the organization policy to never expire in the Microsoft 365 admin center, or set one account to never expire with Graph PowerShell, and know why switching back can force mass password changes. Steps and linksWarning: Passwords set to never expire still age. If you later switch expiration back on ( Use this when cloud users keep getting forced password changes. The default for Microsoft Entra ID is no expiration, but tenants created before 2021 default to 90 days (Microsoft Entra password policies (opens in a new tab)). The Microsoft 365 admin center labels never-expire as (recommended) and suggests MFA to cover the risk of weak or reused passwords (Set the password expiration policy (opens in a new tab)). This applies to cloud-only users. The admin center setting doesn't apply to hybrid users who use password hash sync, pass-through authentication or federation such as AD FS (Synchronize user password hashes (opens in a new tab)). You'll need: User Administrator. Steps
If that didn't work
Password expiration report · Reset a user’s password as an admin · Microsoft Entra Password Protection: Custom Banned Passwords and On-Premises AD Microsoft Learn sources
|
| Test a Conditional Access policy before you enforce it | Conditional Access | Run new or changed policies in report-only mode and check the results first. Steps and linksBefore you turn on a new or changed policy, run it in report-only mode and check the results, so you don’t lock people out (Report-only mode and policy impact (opens in a new tab)). |
| Back up Conditional Access policies before a change | Conditional Access | Export policies to JSON so you have a copy and can see every inclusion and exclusion. Steps and linksExport your policies to JSON first so you have a copy and can see every inclusion and exclusion in one place. Script: Export Conditional Access policies · Script: Export named locations |
| Find what still uses legacy authentication | Conditional Access | Filter the sign-in logs by Client app for legacy protocols, on both interactive and non-interactive tabs. Steps and linksAs at least a Reports Reader, open Entra ID > Monitoring & health > Sign-in logs, add the Client App column, filter Client App to the legacy authentication protocols, and repeat on the User sign-ins (non-interactive) tab (Identify legacy authentication use (opens in a new tab)). Blocking legacy authentication · Script: Export sign-in logs |
| Check whether security defaults are on | Conditional Access | Entra ID > Overview > Properties > Manage security defaults; you need Conditional Access Administrator. Steps and linksSign in as at least a Conditional Access Administrator and go to Entra ID > Overview > Properties > Manage security defaults (Enabling security defaults (opens in a new tab)). Moving to Conditional Access? Follow Microsoft’s steps to replace security defaults (Move to Conditional Access (opens in a new tab)). Security defaults vs Conditional Access · Script: Security defaults state |
| Block sign-ins from countries you never use | Conditional Access | Create a countries named location, then a report-only policy that blocks it, excluding break-glass. Steps and linksCreate a named location for the countries, then a Conditional Access policy that blocks that location; start in report-only and exclude your emergency access accounts (Block access by location (opens in a new tab)). |
| Locked out by a Conditional Access policy | Conditional Access | An enforced Conditional Access policy is blocking admin sign-in. Use an excluded emergency access account or another unblocked Conditional Access or Global Administrator to disable or fix the policy. Steps and linksUse this when an enforced Conditional Access policy is blocking administrative sign-in to Microsoft Entra ID or the portals you need to change that policy. This is recovery after a bad policy is already on, not a per-user "which policy failed?" investigation (use Find out why Conditional Access blocked a sign-in for that) and not the checkup that emergency accounts exist (see Check your break-glass (emergency access) accounts). Microsoft documents two recovery paths: an administrator who can still sign in disables or updates the policy, and a Microsoft support request if no administrator in the organization can update it (What to do if you're locked out (opens in a new tab)). Emergency access (break-glass) accounts exist so you still have a Global Administrator that can sign in when other admin accounts are blocked, provided those accounts are excluded from Conditional Access policies that block or restrict sign-in (Manage emergency access accounts (opens in a new tab)). Do not use undocumented bypasses. You'll need: a working emergency access account that is excluded from enforced Conditional Access, or another administrator who is not blocked, with a role that can edit Conditional Access policies (Conditional Access Administrator or Global Administrator). Configuring session or Conditional Access policies is documented as at least Conditional Access Administrator (Configure adaptive session lifetime policies (opens in a new tab)). Steps
If that didn't workIf no administrator in your organization can update the policy, submit a support request (opens in a new tab). Microsoft support reviews and, after confirming, updates the Conditional Access policies that prevent access. Include the request ID, time, and date from a sign-in event when you have one. Check your break-glass (emergency access) accounts · Back up Conditional Access policies before a change · Find out why Conditional Access blocked a sign-in · Break-Glass / Emergency Access Accounts Microsoft Learn sources
|
| Cut off a compromised or departing user now | Compromised accounts | Disable the account, revoke sessions, and disable their devices; reset the password twice on-premises if hybrid. Steps and linksIn the admin center: Entra ID > Users, select the user, clear Account enabled, then select Revoke sessions. Disabling needs User Administrator (Privileged Authentication Administrator for admins); disabling devices needs Cloud Device Administrator. In hybrid tenants, disable the user in AD and reset the password twice first (Revoke user access in an emergency (opens in a new tab)). Access tokens last one hour by default, so a token already issued can keep working until it expires (Access and refresh tokens (opens in a new tab)). |
| Handle a user flagged as risky | Compromised accounts | Reset the password or confirm the compromise; dismiss the risk only after you have checked. Steps and linksAdmins can generate a temporary password, require a password change, dismiss the user’s risk, or confirm the user is compromised. User Administrator is the least privileged role to reset passwords and Security Operator to dismiss risk; full ID Protection features need Microsoft Entra ID P2 or Microsoft Entra Suite (Remediate risks and unblock users (opens in a new tab)). Script: Risky users report · License requirements: risk-based CA |
| A user reports an MFA prompt they didn’t start | Compromised accounts | Treat it as a likely password compromise: reset the password and check their sign-ins. Steps and linksWith Report suspicious activity on, the user can report the prompt from Authenticator; users who report a prompt are set to High user risk (Report suspicious activity (opens in a new tab)). Then follow the response steps in the guide. |
| Find out who changed a user, group, app or policy | Compromised accounts | The audit logs record changes to users, groups, apps and licenses, with old and new values. Steps and linksAudit logs capture changes to applications, groups, users and licenses. Each entry shows the actor, the target and, where applicable, old and new values, and entries can’t be changed or deleted (Audit logs in Microsoft Entra ID (opens in a new tab)). |
| Investigate a risky sign-in and confirm, dismiss, or mark it safe | Compromised accounts | Open the Identity Protection Risky sign-ins report, investigate the event, then confirm compromised, confirm safe, or dismiss the sign-in risk. Steps and linksUse this when Identity Protection has flagged a sign-in, not only a user. User risk and sign-in risk are separate reports and separate feedback actions. For a user who is flagged, also see Handle a user flagged as risky and the full walkthrough in Investigate and Remediate Risky Users and Risky Sign-ins with ID Protection. The Risky sign-ins report lists sign-ins that are at risk, confirmed compromised, confirmed safe, dismissed, or remediated, with real-time and aggregate risk, detection types, application, Conditional Access, MFA, device, and location details. It holds filterable data for up to the past 30 days and includes interactive and non-interactive sign-ins (use the sign-in type filter to change the view) (ID Protection risk reports (opens in a new tab)). You'll need: Microsoft Entra ID P2 or Microsoft Entra Suite for full Identity Protection features (Investigate risk (opens in a new tab); Remediate risks and unblock users (opens in a new tab)). Learn is not consistent on the least-privileged role to view the reports: the investigate-risk article lists Global Reader, and the risk-reports article signs you in as at least a Security Reader at ID Protection > Dashboard. To take action, sign in as at least a Security Operator; action buttons stay greyed out for a lower-privileged role (Remediate risks and unblock users (opens in a new tab); ID Protection risk reports (opens in a new tab)). User Administrator is the least privileged role to reset passwords. Steps
If that didn't work
Handle a user flagged as risky · Cut off a compromised or departing user now · Investigate and Remediate Risky Users and Risky Sign-ins with ID Protection · Script: Risky users report Microsoft Learn sources
|
| Find and remove malicious Inbox rules and forwarding on a compromised mailbox | Compromised accounts | After a mailbox compromise, check for hidden Inbox rules that forward, redirect or hide mail, and for mailbox-level forwarding, then disable or remove what the attacker added. Steps and linksWarning: When you create, modify, remove, enable or disable an Inbox rule in Exchange PowerShell, any client-side rules created by Outlook in that mailbox are removed (Remove-InboxRule (opens in a new tab), Disable-InboxRule (opens in a new tab)). Export the rule list (step 3) before you change anything, so you can tell the user what to recreate. Attackers in a business email compromise often add Inbox rules that forward mail to an outside address, or that move messages to Notes, Junk Email or RSS Subscriptions so the user doesn't see replies (Common symptoms (opens in a new tab)). Cut off the attacker's access first, then remove what they left behind. You'll need: Exchange Online PowerShell, and permission to run the InboxRule and Mailbox cmdlets in your organization. Steps
If that didn't work
Cut off a compromised or departing user now · Handle a user flagged as risky · Block Automatic External Email Forwarding in Exchange Online Microsoft Learn sources
|
| Unblock a user restricted from sending email (NDR 5.1.8) | Compromised accounts | A user's mail bounces with 550 5.1.8 Access denied, bad outbound sender because they exceeded sending limits. Secure the account first, then remove them from Restricted entities in the Defender portal. Steps and linksWarning: Exceeding outbound sending limits is an indicator of a compromised account. Regain control of the account before you unblock it, or the attacker starts sending again (Before you begin (opens in a new tab)). When a user exceeds the service's outbound sending limits or the limits in an outbound spam policy, they can still receive mail but can't send it, and they're added to the Restricted entities page. Sent messages bounce with error 5.1.8: "550 5.1.8 Access denied, bad outbound sender" (Remove blocked users (opens in a new tab)). You'll need: Security Administrator (Entra role, or the Exchange role group) or Exchange Organization Management to unblock. Global Reader or Security Reader can view the list. Works in all tenants with cloud mailboxes (Permissions (opens in a new tab)). Steps
PowerShell alternative (Exchange Online PowerShell (opens in a new tab)): For a hosted mailbox, use its UPN, which doesn't have to match the primary SMTP address. If that didn't work
Find and remove malicious Inbox rules and forwarding · Cut off a compromised or departing user now · Block Automatic External Email Forwarding in Exchange Online Microsoft Learn sources
|
| Check your break-glass (emergency access) accounts | Admin roles & tenant | At least two cloud-only accounts with phishing-resistant MFA, excluded from enforced CA and monitored. Steps and linksMicrosoft recommends at least two cloud-only emergency access accounts. Confirm they exist, use phishing-resistant MFA (a passkey or certificate-based authentication), are excluded from enforced Conditional Access policies, and are monitored (Manage emergency access accounts (opens in a new tab)). |
| Count and trim your Global Admins | Admin roles & tenant | List who holds Global Administrator and other privileged roles, then move people to least privilege. Steps and linksList who holds Global Administrator and other privileged roles, then move people to least-privilege roles. Script: List privileged role assignments · Too many Global Admins guide |
| Make admin roles eligible instead of permanent | Admin roles & tenant | Use Privileged Identity Management so admins activate a role when they need it. Steps and linksWith PIM, admins hold an eligible assignment and activate the role only when they need it. PIM requires licenses (PIM license requirements (opens in a new tab)); see the PIM row on License requirements. Set up PIM for admin roles · Script: PIM eligible and active assignments |
| Get a quick read on your tenant’s security posture | Admin roles & tenant | Fifteen questions give you a score and a short fix list; baselines give copyable starting points. Steps and linksFifteen questions in your browser give you a score and a short fix list; the baselines give you copyable starting points. |
| Approve or deny a pending PIM role activation | Admin roles & tenant | Open pending Microsoft Entra role requests in Privileged Identity Management and approve or deny the activation with a justification. Steps and linksUse this when you are a delegated approver for a Microsoft Entra role in Privileged Identity Management (PIM) and a request is waiting. This is the approval queue, not the work of making roles eligible (see Make admin roles eligible instead of permanent). Privileged Identity Management lets you require approval for role activation and choose one or more users or groups as delegated approvers. Approvers have 24 hours to approve; that window is not configurable. If the request is not approved in 24 hours, the eligible user must submit a new request (Approve or deny requests for Microsoft Entra roles in Privileged Identity Management (opens in a new tab)). You'll need: to be a delegated approver for that role, or a Global Administrator or Privileged Role Administrator (those roles can view and cancel pending requests even when they are not the assigned approver). Using PIM requires a license; see License requirements (opens in a new tab) and Microsoft Entra ID Governance licensing fundamentals (opens in a new tab). Steps
Approvers cannot approve their own role activation requests, and service principals cannot approve requests. The first approver who approves or denies resolves the request, and all approvers are notified of that response. Global Administrators and Privileged Role Administrators are notified when an approved user becomes active in their role (Approve or deny requests for Microsoft Entra roles in Privileged Identity Management (opens in a new tab)). If that didn't work
Make admin roles eligible instead of permanent · Set Up Privileged Identity Management for Admin Roles · Script: Pending PIM role activation requests Microsoft Learn sources
|
| Give someone an admin role without making them Global Admin | Admin roles & tenant | Pick the least-privileged built-in role for the task, then assign it in the Microsoft 365 admin center or under Roles & admins in the Microsoft Entra admin center, or make it eligible in PIM if you have P2. Steps and linksUse this when someone needs to help with admin work (resetting passwords, creating users, managing groups) and the quick answer would be "make them Global Admin". Microsoft's guidance is to assign the role needed for the specific task (Assign admin roles in the Microsoft 365 admin center (opens in a new tab)). You'll need: at least Privileged Role Administrator to assign Microsoft Entra roles (Prerequisites (opens in a new tab)). With Microsoft Entra ID P2 and PIM you can make the assignment eligible or time-bound instead (Microsoft Entra roles in PIM (opens in a new tab)). Steps
PowerShell (Changes data; from Learn's example, scope If that didn't work
Count and trim your Global Admins · Make admin roles eligible instead of permanent · List Global Admins and privileged role assignments · Too Many Global Admins: How to Clean It Up Microsoft Learn sources
|
| Stop non-admins browsing the Microsoft Entra admin center | Admin roles & tenant | Turn on the user setting that hides common Entra admin center pages from non-admins, know what it doesn't block, and use Conditional Access on Windows Azure Service Management API when you need real enforcement. Steps and linksKnow this first: Microsoft says the Restrict access to Microsoft Entra administration portal setting is not a security measure. It adds friction to casual browsing, but it doesn't block PowerShell, Microsoft Graph or deep links, and it doesn't apply to anyone with an admin role, including custom roles (Restrict member users' default permissions (opens in a new tab)). Use it to keep ordinary users from opening the admin center home, tenant overview and users list, for example on a school or frontline tenant. If you need enforcement, use Conditional Access (step 4). You'll need: an admin who can change Microsoft Entra user settings (Learn's pages for this setting don't name a minimum role). Conditional Access in step 4 needs Microsoft Entra ID P1 and at least Conditional Access Administrator. Steps
If that didn't work
Get a quick read on your tenant’s security posture · Export tenant authorization settings (who can invite guests, guest role) · Give someone an admin role without making them Global Admin Microsoft Learn sources
|
| Handle an app consent prompt or a suspicious app | Apps & consent | Users hit a consent prompt (often AADSTS65001), or you need to see which apps already have access. Steps and linksUsers hit a consent prompt (often AADSTS65001), or you need to see which apps already have delegated access. App consent guide · Script: List delegated consent grants · App consent baseline |
| Review pending admin consent requests | Apps & consent | Enterprise apps > Admin consent requests > My Pending: review, deny or block. Steps and linksReviewers designated in the admin consent workflow sign in as at least a Cloud Application Administrator, go to Entra ID > Enterprise apps > Admin consent requests and use the My Pending tab. Approving grants consent for the app; blocking also stops future requests for it. Requests can be read but not approved or denied with Microsoft Graph (Review admin consent requests (opens in a new tab)). |
| An app stopped working: check for an expired client secret | Apps & consent | Find expiring secrets and certificates, add the new credential, update the app, then remove the old one. Steps and linksClient secrets can last at most 24 months and Microsoft recommends under 12; certificates or federated credentials are preferred over secrets for production (Add and manage app credentials (opens in a new tab)). Script: Apps with expiring secrets and certificates · AADSTS7000215 |
| Review what an enterprise app can access | Apps & consent | Enterprise apps > the app > Permissions shows admin and user consent; revoke what isn’t needed. Steps and linksAs at least a Cloud Application Administrator, open Entra ID > Enterprise apps > All applications, select the app and open Permissions. Learn also has Microsoft Graph PowerShell to list and revoke delegated grants and application permissions (Review permissions granted to enterprise applications (opens in a new tab)). Script: Application permissions granted to an app · Script: List delegated consent grants |
| Stop users from consenting to apps themselves | Apps & consent | Set the tenant user consent policy (including Do not allow user consent, or consent only for verified publishers and low-impact permissions) and classify those permissions. Steps and linksUse this to change the tenant-wide user consent policy: who may grant permissions to apps, and which permissions they may grant. It is not the workflow for a single consent prompt (see Handle an app consent prompt or a suspicious app) and not the pending-request queue (see Review pending admin consent requests and Set Up the Admin Consent Workflow and Clear Pending Requests). Microsoft recommends allowing user consent only for applications published by a verified publisher (opens in a new tab) (Configure how users consent to applications (opens in a new tab)). The settings you configure apply to all users in the organization. These settings do not revoke consent that was already granted (Manage CIMD clients (opens in a new tab)). You'll need: Global Administrator to change user consent settings in the Microsoft Entra admin center. Privileged Role Administrator is sufficient for the Microsoft Graph or Graph PowerShell method. To classify permissions, sign in as at least a Cloud Application Administrator (or Application Administrator) (Configure how users consent to applications (opens in a new tab); Configure permission classifications (opens in a new tab)). Steps
If that didn't work
Handle an app consent prompt or a suspicious app · Review pending admin consent requests · Set Up the Admin Consent Workflow and Clear Pending Requests · App Consent and Risky OAuth Permissions Microsoft Learn sources
|
| Find out why a device is not compliant | Devices & Intune | Open the compliance policy’s device status and per-setting status in Intune. Steps and linksIn the Intune admin center, go to Devices > Compliance, select the policy, then View report or Per-setting status to see which setting failed. A setting in Error keeps the previous state for up to seven days before the device turns Not compliant (Monitor device compliance results (opens in a new tab)). Require compliant devices · Script: Export compliance policies |
| Check a device’s join state with dsregcmd /status | Devices & Intune | Run dsregcmd /status on the device and read AzureAdJoined, DomainJoined and the PRT fields. Steps and linksRun |
| Find a BitLocker recovery key | Devices & Intune | Device details > Show Recovery Key in Microsoft Entra ID; viewing is audited. Steps and linksKeys are available for encrypted Windows devices that back up to Microsoft Entra ID: open the device and select Show Recovery Key. The device owner, Cloud Device Administrator, Helpdesk Administrator, Intune Administrator, Security Administrator and Security Reader can view them, and each view is logged in the audit log KeyManagement category (View or copy BitLocker keys (opens in a new tab)). |
| Read a device’s local admin password (Windows LAPS) | Devices & Intune | Cloud Device Administrator or Intune Administrator can read it; Helpdesk and Security roles see metadata only. Steps and linksReading the password needs the deviceLocalCredentials/password/read action, which Cloud Device Administrator and Intune Administrator have; Helpdesk Administrator, Security Administrator and Security Reader get metadata only. Through Microsoft Graph the password comes back Base64-encoded (Recovering the local administrator password (opens in a new tab)). |
| Autopilot enrollment failed | Devices & Intune | Turn on the ESP diagnostics page, read the Autopilot event log, then match the error code. Steps and linksSet the Enrollment Status Page to show the diagnostics page, read the ModernDeployment-Diagnostics-Provider Autopilot log, and check the error code against Microsoft’s FAQ (Windows Autopilot troubleshooting FAQ (opens in a new tab)). |
| Clean up stale devices safely | Devices & Intune | Export devices by activity timestamp, disable first, delete later, and back up BitLocker keys first. Steps and linksMicrosoft’s routine is to list devices with the activity timestamp, disable the stale ones, wait a grace period, then delete. Deleting can’t be undone and removes BitLocker keys, so back them up first (Clean up stale devices (opens in a new tab)). |
| A user can't enroll a device: check enrollment restrictions | Devices & Intune | Enrollment fails because a platform, ownership, OS version, or per-user device limit restriction is blocking the user. Check those policies before chasing Autopilot or join errors. Steps and linksUse this when a user cannot enroll a device in Intune and you have not yet confirmed whether an enrollment restriction is the cause. This is not an Autopilot ESP or event-log failure (Autopilot enrollment failed), not a Enrollment restrictions are not security features; a compromised device can misrepresent itself. They are a best-effort barrier for non-malicious users (Overview of enrollment restrictions (opens in a new tab)). You'll need: Intune Administrator (the device-limit article also names this role Intune Service Administrator; it is the same built-in Microsoft Entra role) to create, edit, or reprioritize restrictions. Other built-in Intune roles have read-only access (Create device platform restrictions (opens in a new tab); Create device limit restrictions (opens in a new tab)). Steps
If that didn't work
Intune Enrollment Restrictions: Platform, Ownership and Device Limits · Autopilot enrollment failed · Check a device’s join state with dsregcmd /status Microsoft Learn sources
|
| Retire or wipe a lost, stolen, or departing device | Devices & Intune | For a lost or stolen device, wipe it (factory reset). To remove company data from a BYOD or departing-user device and leave personal data, retire it instead. Steps and linksData-loss warning: Wipe factory-resets the device and removes all personal and organizational data, apps, and configurations. Use it when a device is lost or stolen, is being securely erased, or must be reset to default settings. Retire removes company data, managed apps, settings, and profiles and unenrolls the device, but keeps the user's personal content. Use retire for personally owned devices or when you are handing a device out of organizational control (Wipe devices (opens in a new tab); Device action: retire (opens in a new tab)). This is a targeted remote action for one device, not bulk stale-device cleanup (Clean up stale devices safely). Before you retire or delete the Intune object for a Microsoft Entra joined device that is protected by BitLocker, back up the BitLocker recovery key (and local administrator credentials if you will need them). Intune triggers a sync that removes key protectors and suspends BitLocker on the OS volume as a safeguard (Device action: retire (opens in a new tab)). Viewing a BitLocker key is covered in Find a BitLocker recovery key. Both actions run the next time the device checks in with Intune. Until then, the device might still appear in the admin center (Device action: retire (opens in a new tab)). You'll need: at least Help Desk Operator, School Administrator, or a custom role that includes Remote tasks/Wipe or Remote tasks/Retire plus visibility on managed devices (Wipe devices (opens in a new tab); Device action: retire (opens in a new tab)). A tenant can submit up to 500 Wipe actions and 1,000 Retire actions per day. Steps
If that didn't work
Clean up stale devices safely · Find a BitLocker recovery key · Cut off a compromised or departing user now Microsoft Learn sources
|
| A user can't join or register a device: check Entra device settings and the device limit | Devices & Intune | Joining or registering fails because the user isn't allowed to join, registration is set to None, MFA is required twice, or they've hit the maximum number of devices (default 50). Check Entra ID device settings and the user's device list. Steps and linksWarning: If you free up the user's quota by deleting old devices, deletion can't be undone and removes details attached to the device, including BitLocker recovery keys. Wipe or retire Intune-managed devices first, and check Clean up stale devices safely before deleting (Delete a Microsoft Entra device (opens in a new tab)). Use this when Microsoft Entra join or registration fails for one user or a group, and the device itself looks fine. Intune enrollment restrictions are a separate check: A user can't enroll a device. You'll need: Cloud Device Administrator to change device settings (Intune Administrator and Windows 365 Administrator can read them) (Configure device settings (opens in a new tab)). Steps
If that didn't work
Clean up stale devices safely · Stale devices report (activity timestamp) · A user can't enroll a device: check enrollment restrictions Microsoft Learn sources
|
| A new Intune policy or app hasn't reached a device: force a sync | Devices & Intune | Devices check in about every 8 hours. Sync the device from the Intune admin center or from the device itself, watch Device sync status, and know when only re-enrollment will fix it. Steps and linksUse this when you've assigned or changed a policy, profile or app and a device still doesn't have it. Intune notifies online devices when assignments change, but delivery can take from immediately to a few hours, and offline devices only get changes at their next check-in. Maintenance check-ins run about every 8 hours, and a device is allowed only one maintenance sync every 6.5 hours (Policy refresh intervals (opens in a new tab)). A manual sync skips the wait. You'll need: an Intune role with Remote tasks/Sync devices, for example Help Desk Operator, School Administrator or Endpoint Security Manager (Prerequisites (opens in a new tab)). Steps
If that didn't work
For automation, the Graph Find out why a device is not compliant · List Intune managed devices · Windows Update Rings in Intune: Pilot, Broad and Pause Safely Microsoft Learn sources
|
| A guest can’t get in or needs a new email: reset redemption | Guests & sharing | Reset redemption status on the guest’s profile instead of deleting and re-inviting them. Steps and linksHelpdesk Administrator (least privileged) or User Administrator can open the guest’s profile and use Reset redemption status in the B2B collaboration tile. The user keeps the same object ID and group memberships (Reset guest redemption status (opens in a new tab)). |
| Guests are prompted for MFA twice | Guests & sharing | Trust MFA from the partner’s tenant in inbound cross-tenant access settings. Steps and linksFor that organization, open inbound trust settings and select Trust multifactor authentication from Microsoft Entra tenants (Inbound trust settings (opens in a new tab)). |
| Limit SharePoint and OneDrive Anyone links | Guests & sharing | Make Anyone links expire and view-only, or change the default link type to Specific people. Steps and linksIn the SharePoint admin center under Policies > Sharing, set Anyone links to expire and allow View only, and set the default link type to Specific people or Only people in your organization (Advanced settings for Anyone links (opens in a new tab)). |
| Can’t chat with another organization in Teams | Guests & sharing | External access (chat and calls) and guest access (team membership) are separate settings; check both sides. Steps and linksExternal access lets your users chat, call and meet with people in other organizations without adding them to your directory; guest access adds them to teams. For a user to use external access, both the organization setting and a user policy must allow it, and the other organization must allow it too (Guest access and external access (opens in a new tab); Manage external meetings and chat (opens in a new tab)). |
| Limit who can invite guests, and which domains they can invite | Guests & sharing | Tighten External collaboration settings so only specific admins or users can invite guests, and allow or block invitations by domain. Steps and linksUse this to change the tenant B2B invitation policy: who may send guest invitations, and which domains may receive them. This is not a redemption problem for one guest (A guest can’t get in or needs a new email: reset redemption), not SharePoint or OneDrive Anyone-link defaults (Limit SharePoint and OneDrive Anyone links), and not Teams external access (Can’t chat with another organization in Teams). The allow/block list is also independent of the OneDrive and SharePoint Online domain lists (Allow or block invitations (opens in a new tab)). You'll need: a role that can update External collaboration settings, such as Global Administrator or External Identity Provider Administrator (lesser-privileged roles may be available for individual settings when you use Microsoft Graph) (Configure external collaboration settings (opens in a new tab)). The allow/block list steps sign you in as a Global Administrator. Steps
If that didn't work
A guest can’t get in or needs a new email: reset redemption · Guest Access and External Collaboration Cleanup · Cross-Tenant Access Settings for B2B Collaboration · Script: Export tenant authorization settings Microsoft Learn sources
|
| A guest can't sign in with an email one-time passcode | Guests & sharing | Check that email one-time passcode is on for guests, that the guest is really an OTP user, and that they're signing in through a tenant-specific link or 'Sign in to an organization'. Codes last 30 minutes; sessions 24 hours. Steps and linksUse this when a B2B guest without a Microsoft Entra or Microsoft account says they never get a code, or the code doesn't let them in. If the guest needs to sign in with a different account or email, use A guest can’t get in or needs a new email: reset redemption instead. You'll need: at least Authentication Policy Administrator to view or change the email one-time passcode setting (Enable or disable (opens in a new tab)). Steps
If that didn't work
A guest can’t get in or needs a new email: reset redemption · Limit who can invite guests, and which domains they can invite · Conditional Access Authentication Strength for Guests and External Users Microsoft Learn sources
|
| Restore a user deleted in the last 30 days | Users, licenses & sync | Users > Deleted users > Restore user; after 30 days permanent deletion starts. Steps and linksDeleted users stay restorable for 30 days with all properties. As at least a User Administrator, go to Entra ID > Users > Deleted users and select Restore user. Licenses come back too, even if none are free. For synced users, on-premises AD is the source of authority: if the user still exists there, the next sync can bring them back (Restore or remove a recently deleted user (opens in a new tab)). |
| Fix group-based licensing errors | Users, licenses & sync | Find groups and users in error, fix the cause (not enough licenses, conflicts, usage location), then reprocess. Steps and linksGroup-based licensing records failures on the user. In the Microsoft 365 admin center, open Billing > Licenses, select the product and the Errors & issues tab, fix the cause, then select Reprocess (Resolve group-based licensing problems (opens in a new tab)). Script: Groups and users with license errors · Script: License assignment report |
| An on-premises change isn’t showing in Microsoft Entra ID | Users, licenses & sync | Check the sync scheduler and errors, then run the object sync troubleshooter for that one user. Steps and linksCheck the Connect Sync scheduler and the sync errors report, then run the troubleshooting task in the Microsoft Entra Connect wizard for that object (Troubleshoot object synchronization (opens in a new tab)). |
| Soft-match a cloud user to an on-premises account | Users, licenses & sync | A cloud-only account should become a synced account. Match on UPN or primary SMTP (soft match), or sourceAnchor/immutableId (hard match), and check whether soft match is blocked in the tenant. Steps and linksWarning: If Microsoft Entra ID takes over the cloud object, every attribute that has a value in on-premises AD overwrites the cloud value. If you use password hash sync (always on with Express installation), the cloud password hash is also overwritten with the on-premises hash, and users must use the on-premises password. Plan this before you sync. Microsoft strongly recommends against synchronizing on-premises accounts with preexisting administrative accounts in Microsoft Entra ID (Configure Microsoft Entra Connect for an existing tenant (opens in a new tab)). Use this when a cloud-managed user should be taken over by Microsoft Entra Connect or Cloud Sync and become on-premises managed. If the user is already synced and an on-premises change is not appearing, use An on-premises change isn’t showing in Microsoft Entra ID instead. When a new object arrives from on-premises Active Directory, Microsoft Entra ID tries to match it to an existing cloud object on Steps
If that didn't work
An on-premises change isn’t showing in Microsoft Entra ID · Microsoft Entra Connect and Cloud Sync Health Check · Restore a user deleted in the last 30 days Microsoft Learn sources
|
| Change a user's sign-in name (UPN) after a name change, without breaking things | Users, licenses & sync | Change the username in the Microsoft 365 admin center (or in on-premises AD for synced users), then expect the OneDrive URL and shared links to change and Authenticator, devices and apps to need attention. Steps and linksWarning: Changing a UPN changes the user's OneDrive URL. Saved links, OneDrive files the user shared with others, and Power Automate or SharePoint workflows and apps that point to the old OneDrive URL stop working, and the user must reshare files (How UPN changes affect the OneDrive URL (opens in a new tab)). If the person only needs a new email address, add an alias instead and leave the UPN alone. Use this when someone changes their name or moves to a different domain and their sign-in name should match their new primary email address, which Microsoft recommends (Reasons for UPN changes (opens in a new tab)). You'll need: User Administrator (Before you begin (opens in a new tab)). Steps
If that didn't work
An on-premises change isn’t showing in Microsoft Entra ID · Stop repeated sign-in or MFA prompts Microsoft Learn sources
|
| Restore a Microsoft 365 group or team deleted in the last 30 days | Users, licenses & sync | Deleted Microsoft 365 groups (and their team, SharePoint site, mailbox and Planner) are kept for 30 days. Restore from Deleted groups in the Microsoft 365 or Entra admin center, then wait for content and mail to come back. Steps and linksWarning: On the same Deleted groups page, Delete permanently removes the group for good, with no recovery. Select Restore group, not the delete action (View and manage deleted groups (opens in a new tab)). Use this when a Microsoft 365 group, or the team, SharePoint site or shared mailbox that belongs to it, was deleted. A deleted group is kept for 30 days and that period can't be changed. After 30 days, the group and its content are permanently deleted (Restore a deleted Microsoft 365 group (opens in a new tab)). Restoring brings back the group object, members, email addresses, shared inbox and calendar, SharePoint site and files, OneNote notebook, Planner and Teams. Distribution groups can't be restored this way. Cloud security groups can, but soft delete for them is in preview (Overview (opens in a new tab)). You'll need: Groups Administrator (or Global Administrator, Partner Tier 2 Support or Intune Administrator). User Administrator can restore any group except one assigned to the Global Administrator role. Group owners can restore groups they own (Overview (opens in a new tab)). Steps
If that didn't work
Restore a user deleted in the last 30 days · Groups and their owners (find ownerless groups) · Restrict Who Can Create Microsoft 365 Groups and Teams Microsoft Learn sources
|
Nothing matches “”. Try site search or the guides.
Is this still accurate?
Spotted something outdated or wrong on this page? Tell us in a sentence. The page address is sent with it.