You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been able both with Graph API call and PowerShell cmdlets in microsoft.graph.files (2.24.0) list all files in other users onedrives, also delete items, but when i delete a file it is placed in the recycle bin, and then i cannot reach it anymore with cmdlet or API.
What am i missing?
Tried this for example:
Get-MgUserDriveItem -DriveId $onedriveID -UserId $userID -Filter "deleted eq null"
This returns nothing, but if i switch to ne null, then i get everything listed. The same works for Get-MgDriveItem
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been able both with Graph API call and PowerShell cmdlets in microsoft.graph.files (2.24.0) list all files in other users onedrives, also delete items, but when i delete a file it is placed in the recycle bin, and then i cannot reach it anymore with cmdlet or API.
What am i missing?
Tried this for example:
Get-MgUserDriveItem -DriveId $onedriveID -UserId $userID -Filter "deleted eq null"
This returns nothing, but if i switch to ne null, then i get everything listed. The same works for Get-MgDriveItem
Beta Was this translation helpful? Give feedback.
All reactions