How can I list users with access to a shared OneDrive folder?
Asked by
CuriousKomodo37
Hey everyone! I'm managing a shared OneDrive folder that has around 50 external users, and I'm trying to compile a list of all these users. The tough part is that many of these users don't have email addresses associated with their accounts, which makes it impossible for me to just select and copy-paste their info.
The reason I need this list is that I want to move this shared folder from my personal OneDrive to a team OneDrive, so our entire team can manage it and provide access to external users. I know I could create a new link for my team to share, but that's not the solution I'm looking for right now. I'm hopeful there's a PowerShell command that can help retrieve this list without having to ask all my colleagues to dig through their emails for past sharing notifications.
Thanks in advance for any help you can provide!
Answers
Here's a command for you: "Get-SomeAccessInfo -Folder 'YourSharedFolder'". Just kidding, but if you adapt existing scripts, you might find a good way to list users.
Reply to this answer
Have you looked into the Microsoft.Graph module? It might help you obtain the list of users with access to your OneDrive folder. Just make sure to check if it handles external users correctly.
Reply to this answer
I remember seeing a post here recently that had a similar question about accessing sharing links. Maybe you could find what you need by searching for that thread?
CuriousKomodo37: I'll make sure to search more thoroughly. I mustโve missed it during my last attempt!
Reply to this answer
Add your answer
Answers are reviewed before publication.
CuriousKomodo37: I did find some references online, but it seems like there are issues with retrieving external users. I think it might take quite some effort to adapt the scripts they provide. I'll look more into this.