locked
powershell - getting the value actually in Microsoft.Online.Administration.StrongAuthenticationMethod RRS feed

  • Question

  • How to I get what is in Microsoft.Online.Administration.StrongAuthenticationMethod?

    For 365 powershell I did: Get-MsolUser -all | select DisplayName,UserPrincipalName,StrongAuthenticationUserDetails,StrongAuthenticationMethods,StrongAuthenticationRequirements

    but some results are like this:

    StrongAuthenticationUserDetails  : Microsoft.Online.Administration.StrongAuthenticationUserDetails
    StrongAuthenticationMethods      : {Microsoft.Online.Administration.StrongAuthenticationMethod, Microsoft.Online.Administration.StrongAuthenticationMethod}

    I'm trying to see what is actually in those ?properties? like what is Microsoft.Online.Administration.StrongAuthenticationMethod

    Thank you. This part of a script to get what mfa an account has on it. Looking for Duo.

    Friday, August 23, 2019 8:18 PM

Answers

  • StrongAuthenticationRequirements has the below details,

    ExtensionData
    RelyingParty
    RememberDevicesNotIssuedBefore
    State

    StrongAuthenticationUserDetails has 

    ExtensionData
    AlternativePhoneNumber
    Email
    OldPin
    PhoneNumber
    Pin

    Run the below commands,

     $s = Get-MsolUser  -UserPrincipalName UPN  | select  StrongAuthenticationUserDetails,StrongAuthenticationRequirements

    Then use the below 

     $s.StrongAuthenticationUserDetails

     $s.StrongAuthenticationRequirements


    S_K_P

    Friday, August 23, 2019 8:41 PM