For SharePoint Online Site Collections, enabling anonymous (“anyone” or “guest”) links for a site collection is really straightforward in the “manage site collections” section of Office 365 Admin.
You know, this guy…
However, if you have created a new, fancy/fangled Office 365 Group to leverage Teams and other goodies inside your organization, you will have by now noticed that the Site Collections that power the underlying storage and plumbing are not available to be managed. We need another way to make this possible.
First off, a few things to clarify here:
- We are not talking about private or public groups. Private/Public in Office 365 Groups determine whether the groups is “discoverable” within your organization. In other words, can someone, inside our company find the group and request to join, or not. It has nothing to do with externa guest file sharing.
- We are not talking about inviting external users to an Office 365 Group. While that is recently possible, the requirement/desire here is that:
- The organization can use the group internally as it is intended, complete with teams
- However, within the group, they want to share “some” files or folders with external guests/contributors rather than moving the files to another place, to collaborate
It’s not clear yet whether Microsoft plans to ever give us this ability on the surface (a few button clicks), though I suspect with demand/pressure, it is coming. There is lots of chatter in this uservoice, and it indicates “boom, it is done” but it isn’t clear what exactly is done: https://office365.uservoice.com/forums/286611-office-365-groups/suggestions/16365496-allow-anonymous-link-sharing-for-files-and-folders
You may have found this blog post if:
- You get “Anyone” when you try to share files within the SharePoint site for an Office 365 Group and guest sharing isn’t enabled
- You see the message “Your organization is preventing you from selecting this option”
Frustrating. And not super clear how to deal with it (yet).
So for now, we have PowerShell…
- Connect to SharePoint Online using SharePoint Online Management Powershell (get it here: https://www.microsoft.com/en-ca/download/details.aspx?id=35588)
$usercredential = Get-Credential -username $adminUPN -Message "type password"
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential
- Identify and connect to the desired Site Collection
- Enable External User and Guest Sharing on that chosen Site Collection
set-sposite -identity $Siteurl -sharingcapability ExternalUserAndGuestSharing
That's it. Now check your work (refresh the page/site collection).
And what a visitor sees (visiting your shared folder)
Once shared, a folder looks like any other SharePoint site that has external sharing on, for the guest contributor.