Forum Discussion

Kenneth Conaway's avatar
Kenneth Conaway
Copper Contributor
May 29, 2019
Solved

Setting Sharing Allowed Domain List - SPO PowerShell

I'm having issues trying to set up an allowed domain list for external sharing for one of our sites in SharePoint Online. I have a list of about 80 domains which includes subdomains that we need to add to this list via the Set-SPOSite cmdlet. I keep receiving an improperly formed input allow list error even though the list is space delimited and have checked to make sure each domain is correct. I'm wondering if there is somehow a character limit for the string or if there is a way to do this in a foreach loop to add each domain as a space delimited string? Thank you.

5 Replies

Resources