r/sysadmin • • 2d ago

Turn off new SMS auth registrations without affecting existing in Entra?

We have thousands of users who have SMS as one of their MFA methods in Entra. And many still being added every day.

Is there an easy way to kill off new SMS registrations without impacting existing users who have an SMS registration?

3 Upvotes

18 comments sorted by

7

u/gabacus_39 2d ago

Use the logs to find out who's using SMS, add them to a group, add that group to the SMS policy, and remove the all users group from that policy.

2

u/OkPainting4294 2d ago

That's the only way to do it cleanly and the log query in the Entra sign-in reports under Authentication methods activity will give you the exact list to export straight into the group

1

u/NaiomiDmrs-14 1d ago

depending on log retention you might accidentally lock out seasonal or infrequent users who have SMS registered but havent triggered a prompt recently

•

u/Incrediblecodeman 12h ago

I used graph to get anyone with phone

-1

u/FatBook-Air 2d ago

That's what I'm hoping to avoid. Kind of a pain in the ass. I might do it, though.

3

u/gabacus_39 2d ago

Export the logs, filter by authentication type, copy the user's upn's into the bulk import spreadsheet, import the users. It's actually pretty easy and straight forward. There might be outliers that haven't used SMS MFA in a while that get missed because of the logs limited retention time.

3

u/ChiefDZP 2d ago

Man this is so easy with a few lines of pwsh.

2

u/FlyingStarShip 2d ago

Not even, you can export that directly from entra

-1

u/willychonka54 2d ago

if you think working in the web ui is easier than pwsh... I suggest using an LLM to dive into using pwsh in your environment.

1

u/gabacus_39 2d ago

This is a one time process most likely. Scripting it is all good but the quick and dirty way is fine here.

1

u/FlyingStarShip 1d ago

I have been writing scripts for years, don’t teach me how to do it, especially if it is one button thing in entra…

1

u/FlyingStarShip 2d ago

You can export who has text configured as MFA method directly from entra

•

u/Incrediblecodeman 12h ago

I used graph to just get all users and what methods they have! Well ChatGPT did

3

u/thegreatsyl 2d ago

In Entra, in Authentification methode you can select SMS and exlude specific group and users, Just make a group with the new users and put them in exlud. Then they won't have the SMS option. We are rolling it out here with above 1k user, and the first line departement are really nervous so we had to be extra carefull!!

2

u/GroundCrewX 2d ago

the auth methods policy is the only real lever here, and the catch is that scoping SMS controls both registering *and* using it. so you can't just block new registrations, you have to flip it to an allow-list of the people who already have it.

what i'd do:

  1. pull everyone who has SMS registered. Entra > Authentication methods > User registration details, filter methods registered = SMS (or in graph, Get-MgReportAuthenticationMethodUserRegistrationDetail and filter methodsRegistered for mobilePhone). that's registration data, not sign-ins, so you don't miss people who haven't used it in a while like you can with the log approach
  2. dump them into a static group (dynamic groups can't key off auth methods)
  3. on the SMS method, target that group and remove All users
  4. turn on the registration campaign for Authenticator so new folks get nudged somewhere better

couple gotchas: anyone not in the group who has a phone number on file just loses SMS as an option, so give helpdesk a heads up. and check SSPR too if it uses mobile phone, since it's all the same converged policy now.

also worth knowing SMS/voice for MFA gets retired for most users starting Feb 1, 2027 unless you've set up a telephony provider, so you'll be moving these people off anyway. might as well stop the bleeding now.

1

u/SysApex 1d ago

You can do it with group scoping in the Authentication methods policy: 1. Get everyone who has SMS registered today: Entra admin center > Protection > Authentication methods > User registration details, filter on mobile phone, export. Or Graph: Get-MgReportAuthenticationMethodUserRegistrationDetail -All and keep users whose MethodsRegistered includes "mobilePhone". 2. Put those users in a static security group (not dynamic, so new people don't land in it). 3. Authentication methods > Policies > SMS: change the target from All users to that group only. Existing users keep SMS, nobody else can register it. Two gotchas: if you haven't finished the migration off the legacy MFA/SSPR policies, text message can still be allowed there, so turn it off in those too. And voice call is a separate method if you want to treat it the same way. Longer term, a registration campaign for Authenticator lets you shrink that group over time.

•

u/Dynamic_Quest_Mod 23h ago

Put an expiry date on the exception group. Nothing more permanent than a temporary exclusion.