Fields not returning when properties in $select parameters start with upper case only for "directoryObjects

Evans Aboge 106 Reputation points Microsoft Employee
2022-10-18T15:08:11.97+00:00

Properties under the query parameter $select are behaving differently between the requests.
When selecting data from "users" the parameters can either start with upper case or lower case. The results will include the fields in both cases, however when selecting data from "directoryObjects" it will only return the fields if the parameters start with lower case.

To Reproduce
Users
https://graph.microsoft.com/v1.0/users/{objectId}?$select=AccountEnabled,SignInSessionsValidFromDateTime
251617-image.png
Returning results also with lower case:
https://graph.microsoft.com/v1.0/users/{objectId}?$select=accountEnabled,signInSessionsValidFromDateTime
251610-image.png

Only returns the fields when these are starting with lower case letters:
https://graph.microsoft.com/v1.0/directoryObjects/{objectId}?$select=accountEnabled,signInSessionsValidFromDateTime
251654-image.png

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

1 answer

Sort by: Most helpful
  1. Shivam Dhiman 5,946 Reputation points
    2022-10-18T22:03:09.2+00:00

    Hi @Evans Aboge

    I would recommend you to raise a support case with Microsoft Graph, a Support Engineer will be able to assist you better. You can raise support ticket from
    http://aad.portal.azure.com/ or https://admin.microsoft.com/#/support/requests .

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments