How can we get configured default sign-in method using "Get-MgUserAuthenticationMethod" in powershell?

Shinde,Umesh,IN-Chennai 10 Reputation points
2023-04-05T12:15:10.7266667+00:00
  1. How can we get configured default sign-in method using "Get-MgUserAuthenticationMethod" in powershell?
  2. Previously we did using "(Get-MsolUser -UserPrincipalName $username).strongauthenticationmethods" and it was return Methodtype,IsDefault
  3. Now "Get-MsolUser" going to retired and we want to use "Get-MgUserAuthenticationMethod" or any other alternative to get default sign in method.
  4. Please attached snapshot for more details.
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,888 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Siddharth Gautam 855 Reputation points
    2023-04-05T14:37:09.2566667+00:00

    Hello Shinde,Umesh,IN-Chennai, Thanks for posting! As per my research, please refer the below link to get configured sign-in method using PowerShell. Manage sign-in method using PowerShell There is no such default sign-in method. You can pick anyone as default, some of the sign-in methods are listed below.

    Please refer This link for more information. Hope this helps. If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.


  2. Saurav Biswas 0 Reputation points
    2024-04-04T12:31:35.52+00:00

    You can give this command a try.

    Get-MgReportAuthenticationMethodUserRegistrationDetail

    0 comments No comments