Function select doesn't work.

Toroidal Persik 0 Reputation points
2023-05-16T08:01:58.4666667+00:00

Hello.

Asked earlier https://learn.microsoft.com/en-us/answers/questions/1167433/why-does-select-not-work-on-post-https-graph-micro, recreated my question here.

So, I able to get token, then ask:

curl -s -X GET \
    -H "Authorization: Bearer $MYBEARER" \
    -H "Content-Type: application/json" \
https://graph.microsoft.com/v1.0/users?$select=displayName,givenName,Department,EmployeeID

Received "standard" answer like:

{
      "businessPhones": [],
      "displayName": "XXXXXXXXXXXXXX",
      "givenName": "XXXXXXXXXXXXX",
      "jobTitle": null,
      "mail": "XXXXXXXXXXXXXXXXXXXXX",
      "mobilePhone": null,
      "officeLocation": null,
      "preferredLanguage": "en-US",
      "surname": "XXXXXXXXXXXX",
      "userPrincipalName": "XXXXXXXXXXXXXXXXXX",
      "id": "XXXXXXXXXXXXXXXXXXX"
    }

No errors at all. Added credentials:

enter image description here

Well, what I did wrong?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,094 questions
{count} votes