Powershell: how to get OneDrive online folder permissions

Ale Madama 276 Reputation points
2023-03-02T16:21:53.79+00:00

Hi all,

I have some users. One of them, userA, shares some OneDrive folders with 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 get the list of users having permissions on them.

thanks!

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
809 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,053 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more