Mircosoft Azure API $orderBy not giving the desired response

Shambhavi Rai 96 Reputation points

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



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