Shambhavi Rai
Shambhavi Rai

Reputation: 351

Mircosoft Azure API $orderBy not giving the desired response

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

Upvotes: 0

Views: 233

Answers (1)

Kalyan Chanumolu-MSFT
Kalyan Chanumolu-MSFT

Reputation: 1143

Unfortunately, sorting is not currently supported on servicePrincipals.

enter image description here

Upvotes: 1

Related Questions