Unable to Share with External Users

Copper Contributor

Hello all,

as of today I am unable to share with external users from a sharepoint site.

I checked all avenues:

Office 365 - external sharing On

SharePoint - external sharing on

Site - external sharing On

when i choose a document in a library and click Share-Specific People I get this error

 

Your organization's policies don't allow you to share with these users. Go to External Sharing in the Office 365 admin center to enable it.

@Alina Skarbovsky

37 Replies

Thank you for this information.

Been battling to share stuff for days - couldn't figure out why it didn't work.

Can someone please share the step by step guide for powershell ?

Yes this was using SharePoint Online Management shell which you can get here:
https://www.microsoft.com/en-ca/download/details.aspx?id=35588

 

Note: to run this you have to be a "Global Admin" or it won't work.

 

$adminUPN="replace_with_admin-username"
$orgName="Company Name"
$usercredential = Get-Credential -username $adminUPN -Message "type password"
Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential


$siteurl="https://$orgName.sharepoint.com/sites/desired_site_collection"
set-sposite -identity $siteurl -sharingcapability ExternalUserAndGuestSharing

 

The

"Connect-SPOService -Url https://$orgName-admin.sharepoint.com"

URL you get from Sharepoint online admin center

Install SPO PowerShell Module:

https://www.microsoft.com/en-us/download/details.aspx?id=35588

 

RUN AS ADMIN

 

 

TO CONNECT:

 

$adminUPN="admin@yourdomain.net"

$orgName="Contoso"

$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

Connect-SPOService -Url https://yourcompany-admin.sharepoint.com -Credential $userCredential

Dear Douglas, thanks, it was clear, took a few minutes to set it based on your instructions. BR, Imre

Thank you very much for your smart cmdlet. It still doesn't work via GUI in July 2018. This is an awkward way by Microsoft pressing admins to use the PowerShell :-).

This is ridiculous. Every GUI setting that's possible to set is indicating that anonymous link sharing is allowed, but our users can't select that option when trying to share a file. And we're expected to have an IT admin that can run a powershell script? This has been a problem for over a year. When can we expect OneDrive to actually respect the settings in the OneDrive/Sharepoint admin centers?

Our SP Administrator tried to run the Powershell script and received the following error:

 

set-sposite : The managed path xxxx/SitePages is not a managed path in this tenant.

 

 

I am having the same issue with OneDrive. I tried the powershell commands described here (after installing the SharePoint Powershell components). Ran all commands, received no errors. Even using get-sposite ...  -details | fl  I can see that the Sharing Capability is "ExternalUsersAndGuestSharing". Everything seems correct.  It's been about 2.5 hours since I did this, I still cannot share from Onedrive to external users.  Is there a time period that needs to pass before this takes effect?  Am I just being impatient or do I have a larger issue? :)  Thanks

 

Tony

It should take effect almost immediately. PowerShell = Magic :)

Open your SharePoint admin center, and check the box next to the onedrive URL [my.sharepoint...] Then, in the ribbon at the top, click Sharing, and make sure it's enabled in there. Should Be as per PowerShell.

Thanks for the reply! Yes, it is enabled there and everywhere else I can see. :) This is very odd....

PS C:\WINDOWS\system32> get-sposite https://COMPANY-my.sharepoint.com -detailed |fl

yields this:
SharingCapability : ExternalUserAndGuestSharing

I am pretty sure I have it enabled everywhere. :(

I am working on sharepoint online tenant, and i am unable to allow member users to share the sites with external users. here is what i tried:- inside the tenant we are allowing external sharing + anonymous linking. inside the site collection access request we have the following:- enter image description here now i login as a member user >> click on share icon from the home page >> type the email of an external user (user with Hotmail account, who have never access the site collection). now the Hotmail user received and email,but when he clicks on the site collection link inside the email, he will get the following error:- enter image description here so i logout from the current user Hotmail, and i went to the SP online site collection using the site owner user, click on invitations, where i found the invitation with 2 options (resend + withdraw), so i chose to resend.

 

As a quick follow-up, I've removed the three external links at the bottom of your post, as they seemed unrelated to the content and we don't allow third-party promotion in the group. Thanks. 

It's permissions issue you can solve it from OneDrive also.

check the article below for detailed information

 

https://www.paayi.com/your-organizations-policies-dont-allow-you-to-share-with-these-users/

Yes. Just use the URL from the SharePoint Admin Center at the bottom of the Site Collection list, I.E. domain.my.sharepoint.com or just use that portion when accessing your one drive.

Sorry to Hijack this post, but when i use this script i get the message that :

set-sposite : You can’t set the sharing capability to the level you specified, because it is a less restrictive setting than either its parent site collection or your

organization.

Worked for me.