Can You Mass Apply Authentication Methods

DakotaM 26 Reputation points

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?

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,691 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marilee Turscak-MSFT 24,056 Reputation points Microsoft Employee

    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 '' -otherMails @("")  
    Update-MgUser -UserId '' -mobilePhone "+1 4251234567"  
    Update-MgUser -UserId '' -businessPhones "+1 4252345678"  
    Update-MgUser -UserId '' -otherMails @("") -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