Is it possible to return SignInActivity properties using PnP.PowerShell? #3541
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
What version of PnP are you using? The latest builds have fixed a lot of the issues with dll collisions since it uses ALC bridging pattern. You only get the basic properties from Get-PnPAzureADUser unfortunately. |
Beta Was this translation helpful? Give feedback.
-
@AndersRask - I'm actually using the following: PnP.PowerShell - 2.2.77 Nightly Build Even today, after trying Start-ThreadJob, I'm still getting errors like the one below because PnP loads up the older version of Microsoft.Graph.Core before I call the Microsft.Graph cmdlets.
|
Beta Was this translation helpful? Give feedback.
Yeah Newtonsoft Json is a bit hard to figure out in PowerShell for sure.
A little "hack" is to convert the Dictionary object you get back from additional properties to json and back, that will give you a PSObject that is easier to manage :-)
Also remember that your output may vary depending on if you get 1 or more logins back