Forum Discussion
Unable to Share with External Users
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
- JacoblazarDec 20, 2018Copper Contributor
Worked for me.
- Norbert JuergensJul 09, 2018Copper Contributor
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 :-).
- Matt RogersJul 24, 2018Copper Contributor
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?
- Sandy UssiaNov 09, 2017MVP
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)...
- DeletedNov 09, 2017
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.
- Dale RobertsonAug 23, 2017Copper Contributor
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:23Thank You
- Douglas ClellandAug 23, 2017Copper Contributor
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=35588Note: 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 ExternalUserAndGuestSharingCredit is from this post:
http://itgroove.net/brainlitter/2017/06/01/enable-guest-folder-file-sharing-office-365-group-files/- Imre PardiApr 04, 2018Copper Contributor
Dear Douglas, thanks, it was clear, took a few minutes to set it based on your instructions. BR, Imre
- JoSoFineAug 23, 2017Copper Contributor
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 - Jason RhodesAug 23, 2017Iron ContributorYes that the correct way to do it and currently the only way so well done.