--- title: "Identify Users Signing In with SMS-Based Authentication" slug: "dex-wf-identify-sms-authentication-users" updated: 2026-11-30T16:15:48Z published: 2026-11-30T16:15:48Z canonical: "documentation.sysaid.com/dex-wf-identify-sms-authentication-users" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.sysaid.com/llms.txt > Use this file to discover all available pages before exploring further. # Identify Users Signing In with SMS-Based Authentication Find every user who authenticated through SMS (text-message MFA) in the last 30 days and flag them for migration to phishing-resistant methods. **Complexity:** Intermediate. **Impact:** security + compliance + identity + mfa + audit. ## Why use this workflow SMS-based multi-factor authentication is widely deployed but is the weakest of the supported MFA methods. It is vulnerable to SIM-swap attacks, SS7 interception, smishing, and telecom-provider compromise. Microsoft, CISA, and NIST SP 800-63B all recommend migrating away from SMS and voice OTP toward phishing-resistant methods like FIDO2 security keys, Windows Hello for Business, or certificate-based authentication, or, at minimum, the Microsoft Authenticator app with number matching. Before you can migrate users off SMS, you need to know who is actually using it. Run this workflow when you: - Plan a rollout of the Authentication Methods policy to disable SMS tenant-wide. - Perform a quarterly MFA hygiene audit. - Respond to a compliance requirement (for example PCI DSS, HIPAA, CMMC, or a cyber-insurance questionnaire) that asks for evidence of strong-factor adoption. - Investigate a SIM-swap or account-takeover incident and need to scope which accounts are exposed. The workflow combines two data sources for a complete picture: the `userRegistrationDetails` report (who has SMS *registered*) and the Entra sign-in logs (who has *actually used* SMS in the last 30 days). ## Expected outcomes When you finish, you have: - A list of every user who has SMS or a text-message method configured as an authentication method. - A second list of users who completed an SMS MFA challenge in the last 30 days, with the date of their most recent SMS sign-in and a count of SMS challenges. - A clear view of how much SMS usage exists in your tenant. - A targeted migration list that you can hand to your help desk or campaign tool to move users onto Authenticator, FIDO2, or passkeys. - Evidence that you can attach to an audit or compliance report. ## Risks and considerations ### Gotchas and caveats - **Property name differences.** The sign-in log resource uses `userDisplayName`, not `displayName`. The `authenticationDetails` property is available only on the **beta** Graph endpoint. It is not selectable from `v1.0`. - **No server-side filter for SMS.** You cannot use `$filter` on `authenticationDetails/authenticationMethod`. You must fetch sign-ins for the window and filter client-side. For busy tenants this can mean a very large number of records. - **Performance.** Always page with `$top=999`, follow `@odata.nextLink`, and consider narrowing the window (for example, 7 or 14 days) if runs time out. - **Registered does not mean used.** `userRegistrationDetails` tells you who *can* use SMS, not who *did*. Cross-reference with sign-in logs for actual usage. - **"Previously satisfied" noise.** Many sign-ins show `authenticationMethod: "Previously satisfied"` because the MFA claim was cached. Those are not SMS events. Count only entries where the method explicitly contains "SMS" or "Text". - **Log retention.** Entra sign-in logs are retained for 7 days on free tenants and 30 days on Entra ID P1 or P2. If you need longer history, ship logs to Log Analytics or a SIEM. - **Do not disable SMS tenant-wide before you migrate users.** Removing SMS before users register an alternate method locks them out. ## Required permissions | Permission | Why it's needed | | --- | --- | | AuditLog.Read.All | Read sign-in logs to detect which users completed an SMS MFA challenge. | | UserAuthenticationMethod.Read.All | Enumerate each user's registered authentication methods (phone and SMS). | | Reports.Read.All | Read the authenticationMethods user registration details report. | | Directory.Read.All | Resolve user display names and UPNs referenced in sign-in events. | ## Ask Dex Paste the prompt into a Dex conversation. ### Prompt for IT admins ``` Identify every user in our tenant who used SMS-based authentication in the last 30 days. Cross-check the authentication methods registration report with the Entra sign-in logs, de-duplicate by user, and produce a CSV that includes display name, UPN, last SMS sign-in date, and SMS challenge count. Flag any privileged/admin accounts in the list for urgent migration to phishing-resistant MFA. ``` ## Manual steps (admin center) This path works for spot checks and small tenants. For tenant-wide reporting, use the API or PowerShell approach. ### Part A: Who has SMS registered 1. Sign in to the [Microsoft Entra admin center](https://entra.microsoft.com) as a **Global Reader** or **Authentication Policy Administrator**. 2. Go to **Protection** > **Authentication methods** > **Activity**. 3. Select the **Registration** tab. The chart at the top shows the count of users registered by method. 4. Scroll to the **Users registered by method** table. Look for the row labeled `SMS` (sometimes shown as `Phone (SMS)` or `Mobile phone`). 5. Select the SMS row to drill into the list of users. Use **Download** to export the list as CSV. ### Part B: Who actually used SMS in the last 30 days 1. Still in the Entra admin center, go to **Identity** > **Monitoring & health** > **Sign-in logs**. 2. Select **Add filters** and add the **Authentication requirement** filter set to *Multi-factor authentication*. 3. Set the date range to **Last 30 days**. 4. Select any sign-in entry, open the **Authentication Details** tab, and confirm the *Authentication method* column. You are looking for rows where it reads `SMS`, `Text message`, or `Phone (SMS)`. 5. Because the portal does not filter on *authentication method* directly, select **Download** > **JSON** (or CSV) to export the visible window and filter in Excel or Power Query: `authenticationDetails[].authenticationMethod contains "SMS"`. 6. De-duplicate by **User principal name** to produce your final list. ### Part C: Act on the list - Email affected users with instructions to register the Microsoft Authenticator app (or a FIDO2 key). - Once migration is complete, go to **Protection** > **Authentication methods** > **Policies** > **SMS** and disable SMS for the migrated group. ## Microsoft Graph API Two endpoints are involved. The first is a pre-aggregated report. The second is the raw sign-in log that you scan for actual SMS challenges. ### 1. Pull the registration report ``` GET https://graph.microsoft.com/beta/reports/authenticationMethods/userRegistrationDetails?$top=999 Authorization: Bearer {token} ``` Page through `@odata.nextLink` and keep any user whose `methodsRegistered` array contains a value starting with `sms` or `mobilePhone`. Sample response: ``` {  "value": [    {      "id": "6fe78db5-dfbf-4565-ab38-dbfbd3ca5daa",      "userPrincipalName": "jdoe@contoso.com",      "userDisplayName": "Jane Doe",      "methodsRegistered": ["mobilePhone", "microsoftAuthenticatorPush"],      "isMfaRegistered": true,      "isSsprRegistered": true    }  ] } ``` ### 2. Scan sign-in logs for actual SMS challenges (last 30 days) The `authenticationDetails` property is available only on the **beta** endpoint. You cannot filter on it server-side, so filter by date and process client-side. ``` GET https://graph.microsoft.com/beta/auditLogs/signIns  ?$filter=createdDateTime ge {start_iso}  &$top=999 ``` For each sign-in, inspect the `authenticationDetails` array: ``` {  "userPrincipalName": "jdoe@contoso.com",  "userDisplayName": "Jane Doe",  "createdDateTime": "2025-10-14T18:22:10Z",  "authenticationDetails": [    {      "authenticationMethod": "SMS",      "authenticationMethodDetail": "+1 XXX-XXX-1234",      "succeeded": true,      "authenticationStepRequirement": "Primary authentication"    }  ] } ``` A sign-in counts as SMS when any element of `authenticationDetails` has `authenticationMethod` equal to `SMS` (case-insensitive) or `authenticationMethodDetail` containing *"SMS"* or *"Text message"*. Ignore entries where the method is *"Previously satisfied"*. Those are cached MFA claims. ### 3. Aggregate Group the matching events by `userPrincipalName` and record the latest `createdDateTime` and a count. This produces the "used SMS in the last 30 days" list that you join against the registration report. **Pagination note:** follow `@odata.nextLink` until it is absent. For busy tenants, consider narrowing to shorter windows and running multiple passes to stay under request timeouts. ## PowerShell Use the **Microsoft.Graph** SDK. Install it once with `Install-Module Microsoft.Graph -Scope CurrentUser`. ### Approach 1. **Connect** with the required scopes: `AuditLog.Read.All`, `UserAuthenticationMethod.Read.All`, `Reports.Read.All`, `Directory.Read.All`. 2. **Pull the registration report** from `/beta/reports/authenticationMethods/userRegistrationDetails` and filter where `methodsRegistered` contains `sms` or `mobilePhone`. 3. **Page the sign-in log** for the last *N* days. For each event, inspect `authenticationDetails` and count it as SMS when `authenticationMethod -match 'SMS'` or `authenticationMethodDetail -match 'SMS|Text'`. 4. **Aggregate** per user (last-seen date, count of SMS challenges). 5. **Join** the two result sets and **export** them to CSV files (one for registered users, one for users who used SMS in the window) for review. On tenants with heavy sign-in traffic, reduce the number of days or run the sign-in scan during off-hours.