Is it possible to list drive items that have no version

Bjorn Berghmans 0 Reputation points
2023-09-05T14:32:07.8633333+00:00

When I use the following HTTP request, I see that there are 49 children in the root of the corresponding drive:

GET https://graph.microsoft.com/v1.0/sites/{site-ID}/drives/{drive-ID}/root

User's image

When I try to list these children by adding /children to this request, none of these are returned:
User's image

I checked the corresponding document library on this site and find out that there are 49 files inside this folder that has no version. They are not published/checked in.

Is there a way I can list these unversioned items? I already tried a lot of things with $expand, $select, $filter, but none of them are working.

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

1 answer

Sort by: Most helpful
  1. Ab-8756 800 Reputation points
    2023-09-05T18:41:22.19+00:00

    Hello Bjorn Berghmans,

    Thank you for reaching out to this Q&A forum.
    To get list drive items, you can do Get, sites/site-Id/drives/Drive-Id/items/root/children. 
    I have 4 items in my drive;
    list_items_in_Drive

    With Get, sites/site-Id/drives/Drive-Id/items/root/children. all of them are showing up.

    API_call_display_list

    If you would like to get list of any other sub folder, like channel 2 filder, you can do Get, sites/Id/drives/Drive-id/items/item-id/children.

    Hope that 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.