Microsoft Security | Microsoft Graph
An API that connects multiple Microsoft services, enabling data access and automation across platforms
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Need some help figuring out how to properly do a select-object from graph powershell. I'm assuming because of the response headers it is throwing off the standard | Select-Object -ExpandProperty
Since Get-MgBetaUser is already selecting the properties you want do you really need to filter the properties in Select-Object? Since UserPrincipalName is just a string try using Select-Object -Property UserPrincipalName instead.