Hi , graph api select query not working with Invoke-PnPGraphMethod

Sudeep Bhuyan 0 Reputation points

Hi All ,

I am trying to call grapgh api to pull some extra user property than default props.

for this i am using $select in graph api.

Strange thing is in grapgh explorer everythings works fine.

But when i am trying to call the same url using pnp powershell " Invoke-PnPGraphMethod" i am getting only the default props, not the one that are in $select

below is the code and api:

$User=Invoke-PnPGraphMethod -Url "https://graph.microsoft.com/v1.0/users/$($userEmail)?$select=displayName,Department,,Mail"

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,537 questions
0 comments No comments
{count} votes