Ordering the DriveItems from the Graph API only possible on name property

Viewed 218

The DriveItems received from the Microsoft Graph API must be ordered on customer needs, but the only property where ordering is possible is name (for so far I've found it).

I've tried many properties listed below. The URL + path of the queries below is https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/Children for each.

Query Working
?$orderby=name asc Yes
?$orderby=createdDateTime asc No → Operation not supported
?$orderby=lastModifiedDateTime asc No → The property Modified is not supported for OrderBy.
?$orderby=size asc No → The property SMTotalFileStreamSize is not supported for OrderBy.
?$orderby=createdBy/user/displayname asc No → Operation not supported
?$orderby=createdby/user/email asc No → OrderBy not supported.
?$orderby=lastModifiedBy/user/displayname asc No → Operation not supported
?$orderby=lastModifiedBy/user/email asc No → OrderBy not supported.

According to the documentation I read, it should be working.

This method supports the $expand, $select, $skipToken, $top and $orderby OData query parameters to customize the response.

Source: docs.microsoft.com

Why is name the only property to order the results and could the others be possible by a setting?

0 Answers
Related