Can You Mass Apply Authentication Methods

DakotaM 26 Reputation points
2022-11-03T20:07:50.01+00:00

I was wondering if it was possible to apply a authentication method to M365 users in mass. The users have their cellphones as a method of MFA, but I want to setup another method of authentication for the users. I have been able to setup a additional authentication method using powershell commands. I'm just curious if there is a way to make this process more automated or in mass. I tried importing a CSV file but was unsuccessful. Preferably I would like to be able to setup an automated way of pushing this out to all current and future users using Azure, but I haven't been able to find a way of doing this either. Any suggestions?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 33,801 Reputation points Microsoft Employee
    2022-11-09T01:39:49.52+00:00

    Hi @DakotaM ,

    Thanks for the post! You are correct that if you are looking to pre-configure authentication methods in bulk, you can use the Microsoft.Graph PowerShell Module to update the authentication method and then use a foreach loop to update in bulk. I don't think there is a way to avoid using a CSV file since you will need that to include all of the authentication details.

    The documentation has an example here for pre-populating the authentication data:

    Connect-MgGraph -Scopes "User.ReadWrite.All"  
      
    Update-MgUser -UserId 'user@domain.com' -otherMails @("emails@domain.com")  
    Update-MgUser -UserId 'user@domain.com' -mobilePhone "+1 4251234567"  
    Update-MgUser -UserId 'user@domain.com' -businessPhones "+1 4252345678"  
      
    Update-MgUser -UserId 'user@domain.com' -otherMails @("emails@domain.com") -mobilePhone "+1 4251234567" -businessPhones "+1 4252345678"  
    

    There are also several sample scripts shared in blogs and on Technet for achieving the same goal.

    Let me know if you have further questions or if you are facing a particular issue with the method you are using.

    -

    If the information helped you, please Accept the answer. This will help us and other community members as well.


0 additional answers

Sort by: Most helpful