powershell: how to get OneDrive folder permissions

Ale Madama 276 Reputation points
2023-03-02T10:42:12.79+00:00

Hi all,

I have some users. One of them, userA, shares some OneDrive folders to someone else of the other users.

  • folder: "userA/first/second" -> full control (edit) granted to: userB, userC
  • folder: "userA/first"                            -> readonly granted to: userB, userC userD - full control (edit) granted to: userB
  • folder: "userA/first/second/third"        -> readonly granted to: userE
  • folder: "userA/fourth/fifth"                 -> full control (edit) granted to: userE, userC

basically, lots of folders (and their subfolders) owned by userA, shared with the other users, with different permissions.

I'm able to list all the folders/subfolders within a root online, but I don't know how to list the users having permissions on them.

thanks!

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
903 questions
0 comments No comments
{count} vote