Graph returns "Preservation Hold library" as OneDrive drive resource for some Business accounts

Andrew Omondi 256 Reputation points Microsoft Employee
2021-07-23T09:02:37.48+00:00

For some Microsoft Business accounts (work or school account) request GET /me/drives returns collection of user's drives with "Preservation Hold library" among them.
Drive resource doesn't contain any information that allows detect this library so as to skip in further processing.

Shouldn't Preservation Hold library be skipped by the API graph and not be returned to the client?
Is there a way to skip these values?
Another variant is the drive resource should contain some field for detecting and skipping this library on the client side.

Microsoft Security | Microsoft Graph
{count} vote

1 answer

Sort by: Most helpful
  1. CarlZhao-MSFT 46,376 Reputation points
    2021-07-26T09:10:40.413+00:00

    It cannot be skipped for the time being, this is by design. /me/drives endpoint cannot use the $filter parameter temporarily, so you cannot filter or skip webUrl parameter . The endpoint currently returns all libraries by default.


    If an Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.