Aug 22 2017 11:11 AM - edited Aug 22 2017 11:13 AM
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.
Aug 22 2017 01:40 PM
Hello seems i figured it out, had to go the powershell route as the tenant UI setting were not working
set-sposite -identity $Siteurl -sharingcapability ExternalUserAndGuestSharing
Aug 22 2017 07:48 PM
Aug 23 2017 12:30 AM
Thank you so much for this.
Only just started to learn how to use powershell properly, and i wouldn't have found this that fast.
you sir are my hero of the day
Aug 23 2017 10:05 AM - edited Aug 23 2017 10:08 AM
1. Does this need to be run using the SPO Powershell? 2. Is that the actual CMDlet? If not, can you add an example with a fake SPO Url please?
I tried
set-sposite -identity $Siteurl https://fake123.sharepoint.com/sites/test-city -sharingcapability ExternalUserAndGuestSharing
And get ugly red errors:
Set-SPOSite : Cannot validate argument on parameter 'Identity'. The argument is null or empty. Provide an argument
that is not null or empty, and then try the command again.
At line:1 char:23
Thank You
Aug 23 2017 10:14 AM - edited Aug 23 2017 10:16 AM
Hi Dale,
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_username"
$orgName="name_of_sharepoint_prefix"
$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
Credit is from this post:
http://itgroove.net/brainlitter/2017/06/01/enable-guest-folder-file-sharing-office-365-group-files/
Aug 23 2017 11:57 AM - edited Aug 23 2017 11:58 AM
FYI, I am seeing the following in my Service Health center
SP115406 - Unable to share with external users
|
Aug 23 2017 11:59 AM - edited Aug 23 2017 12:00 PM
Hi Dean!
I can confirm this message, I am seeing the same thing. Hopefully this will help folks! Appreciate you chiming in as always!
Aug 23 2017 12:36 PM
Thank You! :)
SP115406 - Unable to share with external users
is the reason I needed this, as enabling external sharing via PowerShell is listed as a workaround.
I see it was mentioned already.
Aug 29 2017 06:46 AM
Hello Everyone,
We have exactly the same problem but with OneDrive, the powershell commandline seems only for SharePoint Sites, anyone tried with OneDrive ?
Aug 29 2017 06:48 AM
Tried with OneDrive and it Works! Get the URL from SharePoint Admin Center - look for the one with my-sharepoint in it - Thats it.
Aug 29 2017 06:58 AM
Aug 29 2017 08:33 AM
Thats Good news Dale! what script did you use?
Sep 01 2017 08:05 AM
the one posted above:
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
Oct 12 2017 12:22 PM
Hi everyone,
Thank you for the discusion and the PowerShell solution. I noticed that it was mentioned back in August that a fix was being rolled out for the GUI. Does anyone know when we can expect this?
Cheers,
-f.
Nov 09 2017 01:08 PM
@Douglas Clelland wrote:Hello seems i figured it out, had to go the powershell route as the tenant UI setting were not working
set-sposite -identity $Siteurl -sharingcapability ExternalUserAndGuestSharing
Thanks so much for this... just what I needed today! Worked perfectly.
Seems rather silly this isn't working in the UI yet (still)...
Nov 09 2017 01:37 PM
I agree ... having to do things by script adds a lot of over head. My IT manager, has complained that he hates the Admin overhead with O365 because what he could do in the past with a GUI in a few seconds he now has to do by scripting and for him who hasn't done a lot of PowerShell this is cumbersome and a learning curve that he doesn't have time to spend learning. All fine and good if you are a dev-op who was brought up on scripting.
Nov 09 2017 03:54 PM
I did a bit of testing on this out of curiosity, and found (at least from the sites I tested in my tenant, not necessarily a thorough examination) that external sharing works via the UI settings on sites I created prior to the time when a new site created an O365 group. The sites that are "Public Groups" all seem to not be allowing external sharing (though I have it enabled at all the levels, as you did), unless I use the PowerShell cmdlet.
Since those are the same sites that don't show up in the list of Site Collections in the SharePoint Admin center, I hope when we get the new Admin Center (that shows the "groupified" sites as well), that maybe the external sharing settings will propagate correctly....