You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the below command the Manager value is empty. The equivelent Get-MgUser command returns the manager value Get-PnPAzureADUser -Select Manager -Identity $Identity
Expected behavior
The details of the Manager (ideally including at least the GUID) is returned
Actual behavior
The field is returned under AdditionalProperties, but the property is empty
Fixing this would require making changes in PnP.Framework - PnP.Framework.Graph.UsersUtility.ListUsers method.
Essentially, the issue is that manager is returned only once you add $expand=manager to the query (adding $select is not enough).
I will look at this in my spare time and provide a PR.
Reporting an Issue or Missing Feature
When running the below command the Manager value is empty. The equivelent Get-MgUser command returns the manager value
Get-PnPAzureADUser -Select Manager -Identity $Identity
Expected behavior
The details of the Manager (ideally including at least the GUID) is returned
Actual behavior
The field is returned under AdditionalProperties, but the property is empty
Steps to reproduce behavior
What is the version of the Cmdlet module you are running?
2.4.0 and Powershell 7.2
Which operating system/environment are you running PnP PowerShell on?
The text was updated successfully, but these errors were encountered: