Share SharePoint folder with Everyone (no sign in required)

Modified on Wed, 13 Dec 2017 at 10:17 AM

Overview: Microsoft protect your SharePoint Groups by requiring sign in. In the real world you may have a genuine business need to share a resource (file/folder) with someone who realistically will not sign in - perhaps a key client who needs quick and easy access to a resource. If you want to take on the responsibility of sharing a resource via a link - which could in theory be passed onto a 3rd party - then here we outline how to do it.


Before you begin you will need 3 pieces of info:

  • An email address and password of someone with Admin rights to the Office 365 tenant (Example: admin@companyX.onmicrosoft.com)
    • In the code below enter this email address in the $adminUser field
  • The tenant subdomain on sharepoint.com 
    • For example, if the URL is "https://companyXcom.sharepoint.com/sites/" then the subdomain is companyXcom
    • In the code below enter this subdomain in the $sharepointSubdomain field
  • The SharePoint Group name


Running the code

If you don't have it, install the SharePoint Management Shell https://www.microsoft.com/en-us/download/details.aspx?id=35588

Launch the SharePoint Management Shell and paste in the code below (after inserting your admin email, subdomain, and group name)


$adminUser="########"
$sharepointSubdomain="########"
$sharepointGroupName="########"
$userCredential = Get-Credential -UserName $adminUser -Message "Type the password for the admin account"
Connect-SPOService -Url https://$sharepointSubdomain-admin.sharepoint.com -Credential $userCredential
Set-SPOSite -Identity https://$sharepointSubdomain.sharepoint.com/sites/$sharepointGroupName -SharingCapability ExternalUserAndGuestSharing



And that's done! Visit the SharePoint folder online and attempt to "share" a resource - you can now share with "Everyone":

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article