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"
Sign in to answer