Forum Discussion
Unable to Share with External Users
Hello Everyone,
We have exactly the same problem but with OneDrive, the powershell commandline seems only for SharePoint Sites, anyone tried with OneDrive ?
- Dale RobertsonAug 29, 2017Copper Contributor
That is your OneDrive url
- TechroadieAug 29, 2017Brass ContributorThanks Dale i'm going to try it right now !
- TechroadieAug 30, 2017Brass ContributorI tried and it works ! Thanks a lot
- Dale RobertsonAug 29, 2017Copper Contributor
Tried with OneDrive and it Works! Get the URL from SharePoint Admin Center - look for the one with my-sharepoint in it - Thats it.
- Douglas ClellandAug 29, 2017Brass Contributor
Thats Good news Dale! what script did you use?
- Dale RobertsonSep 01, 2017Copper Contributor
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=35588Note: 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 ExternalUserAndGuestSharingThe
"Connect-SPOService -Url https://$orgName-admin.sharepoint.com"
URL you get from Sharepoint online admin center