Skip to content

Should Get-PnPAADUser return an object with several null values? #245

Answered by erwinvanhunen
stvpwrs asked this question in Q&A
Discussion options

You must be logged in to vote

It's a relatively complex story. The behaviour you see is dictated by the Graph SDK we use behind the scenes where properties explicitely have to be requested. I just noticed that we have an AdditionalProperties property, whereas the Graph SDK implements that as AdditionalData. I will merge a fix for that.

In order to get additional information about properties you will have to use the -Select parameter, for instance

Get-PnPAADUser -Select Mail, AccountEnabled

Notice however that you will have to upgrade to the nightly build available as we recently made a change to include the Mail if no -Select is used.

So if you do not provide any Select value the Graph SDK (which we do not build ourse…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by stvpwrs
Comment options

You must be logged in to vote
1 reply
@stvpwrs
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants