Mircosoft Azure API $orderBy not giving the desired response

Shambhavi Rai 96 Reputation points
2021-09-09T05:48:40.32+00:00

I am trying to make the following API call and I expect ordering done based on createdDateTime, however this ordering is not done by Microsoft and I am still getting response in random order, any suggestions to make it work?

GET /v1.0/servicePrincipals/{0}/appRoleAssignedTo?$orderby=createdDateTime+asc

https://learn.microsoft.com/en-us/azure/search/search-query-odata-orderby

https://learn.microsoft.com/en-us/graph/api/serviceprincipal-list-approleassignedto?view=graph-rest-1.0&tabs=http

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