4

Does anyone have any idea how to go about getting "Shared with Everyone" information from SharePoint and OneDrive for business? I've been scratching my head for a few days trying to figure it out, but I'm having no luck.

What I need to do is create a report of any users in our Office 365 tenant that have files in their "Shared with Everyone" folder.

If anyone could even point me in the right direction, I'd certainly appreciate it. I'm a fair hand with PowerShell, but that isn't even helping much.

Thank you!

Chris Martin
  • 383
  • 1
  • 3
  • 8
  • so you want all the users in oneDrive who have files in their "Shared with Everyone" folder? I am not sure about the rolde of SharePoint here. Kindly explain – Taran Goel Jul 07 '15 at 09:18
  • Yes, that is correct. I was under the impression that all OneDrive administration is handled through SharePoint, but I will admit I may be completely wrong. – Chris Martin Jul 07 '15 at 10:43
  • OneDrive for Business is based on Sharepoint - the "Shared with Everyone" folder is simply a folder within the default document library in a users mysite – Brad Mar 09 '16 at 16:51

1 Answers1

0

Since you mentioned Powershell you could try using the Microsoft.SharePoint.Powershell cmdlets, specifically:

$web = Get-SPWeb http://{tenant's my site host}/personal/{user}
if ($web.GetFolder("Documents/Shared with Everyone").ItemCount -gt 0) { Write-Host "this user is using 'Shared With Everyone'" }

You'd of course have to have knowledge of all valid values of {user}, which you could grab using this example.

Brad
  • 4,089
  • 2
  • 16
  • 26