[BUG] - Manager is not returned from Get-PnPAzureADUser
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 904
- Forks
- 407
- Avg merge
- 9h 16m
- Merged PRs (30d)
- 10
Description
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
$Identity = ""
$PnPUser = Get-PnPAzureADUser -Select Manager -Identity $Identity
$PnPUser.AdditionalProperties
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?
- Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Get-PnPAzureADUser command and reproduce the issue using -Select Manager and an identity, then compare its AdditionalProperties with the equivalent Get-MgUser result. Done means the manager details, ideally including its GUID, are returned rather than an empty property.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100