3

For some reason request GET /my/drives for OneDrive Business accounts returns "Preservation Hold library" in collection of user's drives.

"Preservation Hold library" drive has language specific description: "This library contains items that have been modified or deleted but must remain available due to eDiscovery holds. Items cannot be modified or removed" and webUrl like "https://[tenant]-my.sharepoint.com/personal/[account_name]/PreservationHoldLibrary".

How to detect at runtime which drive is linked with "Preservation Hold library" so as to filter it out of processing?

I believe that parsing webUrl field is not reliable way.

UPDATE:
Question on Microsoft Q&A.

23W
  • 1,413
  • 18
  • 37

0 Answers0