Getting Children of the users Personal Vault #2965
Unanswered
jmwileydev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am writing an app which is accessing the user's personal "OneDrive" files. If I unlock my personal vault on the device the DriveItem for the "Personal Vault" shows up is properly marked as a folder. If I try to get the children of the "Personal Vault" I get back zero results.
var children = await _graphServiceClient!.Drives[_drive.Id].Items[folderItem.Id].Children.GetAsync();
The call returns a non-null DriveItemCollectionResponse but the value has no items.
Is there a special permission I need to add to my application permissions in order to see these items, or is there a different call that needs to be made.
Also, I noticed if the Personal Vault is not unlocked on the device then the DriveItem.Folder is null and the DriveItem.RemoteItem.Folder is null. Is there another way I can tell without the user unlocking this folder that it is a "Personal Vault"?
Cheers,
J.M.
Beta Was this translation helpful? Give feedback.
All reactions