Hi All,
When using Get-MgUserAuthenticationMethod I’m unalbe to extreact additional values…See below for the context…
Get-MgUserAuthenticationMethod -UserId $user22 | Get-Member -MemberType Properties
TypeName: Microsoft.Graph.PowerShell.Models.MicrosoftGraphAuthenticationMethod
Name MemberType Definition
---- ---------- ----------
AdditionalProperties Property System.Collections.Generic.IDictionary[string,System.Object] AdditionalProperties {get;}
Id Property string Id {get;set;}
Get-MgUserAuthenticationMethod -UserId $user22 |select AdditionalProperties ## This Works!!!
AdditionalProperties
--------------------
{[@odata.type, #microsoft.graph.passwordAuthenticationMethod]}
{[@odata.type, #microsoft.graph.microsoftAuthenticatorAuthenticationMethod], [displayName, iPhone 13], [deviceTag, SoftwareTokenActivated], [phoneAppVersion, 6.6.8]}
##This works but I want to more finite extractions
$(Get-MgUserAuthenticationMethod -UserId $user22).AdditionalProperties
Key Value
--- -----
@odata.type #microsoft.graph.passwordAuthenticationMethod
@odata.type #microsoft.graph.microsoftAuthenticatorAuthenticationMethod
displayName iPhone 13
deviceTag SoftwareTokenActivated
phoneAppVersion 6.6.8
*//THIS does not work\*
$(Get-MgUserAuthenticationMethod -UserId $user22).AdditionalProperties | Select DisplayName
DisplayName
-----------
///GOAL\\
I want to extract these additional values " DispayName, devicetag & SoftwareTokenActivated).
What is the proper snytax to extract this valies in a FL or FT output…?
Thanks in Advance