Share via

Replacement för 'Reset-MsolStrongAuthenticationMethodByUpn' and 'Get-MsolUserByStrongAuthentication' in 'Microsoft Graph PowerShell cmdlets'

Rickard Dehlin 1 Reputation point
2022-06-03T07:45:40.16+00:00
Microsoft Security | Microsoft Graph

1 answer

Sort by: Most helpful
  1. Stuart White 21 Reputation points
    2023-01-18T10:43:19.1233333+00:00

    The only way that I have found is to loop through each method and delete each one individually

    Example doing it with raw REST (assuming you have a valid token already):

    $user = "******@domain.com"
    Invoke-RestMethod -Method DELETE -Uri "https://graph.microsoft.com/beta/$user/authentication/phoneMethods/3179e48a-750b-4051-897c-87b9720928f7"
    

    Example doing it with the Graph PowerShell SDK (no token required beforehand):

    Install-module Microsoft.Graph.Identity.Signins
    Connect-MgGraph -Scopes UserAuthenticationMethod.ReadWrite.All
    Select-MgProfile -Name beta
    $user = "******@domain.com"
    Remove-MgUserAuthenticationPhoneMethod -UserId $user -PhoneAuthentica
    
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.