Forum Discussion
Kenneth Conaway
May 29, 2019Copper Contributor
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 a...
- May 29, 2019
The limit is indeed 60, as indicated in the documentation: https://docs.microsoft.com/en-us/sharepoint/restricted-domains-sharing
TimLB
May 29, 2019Steel Contributor
Kenneth Conaway Post a sample of what you're using for the script and redact info that we don't need to see? Best guess might be that you're missing or not using the right quotes that are recognized by powershell.
Kenneth Conaway
May 29, 2019Copper Contributor
I just did a manual input of what I did and I think I'm reaching a 60 domain limit. If I add a 61st one it throws the error so there must be an upper limit to how many domains are allowed in the list.
- VasilMichevMay 29, 2019MVP
The limit is indeed 60, as indicated in the documentation: https://docs.microsoft.com/en-us/sharepoint/restricted-domains-sharing
- Kenneth ConawayMay 29, 2019Copper ContributorThanks for the input. Hopefully Microsoft will increase this limit at some point. I'll see if there is a uservoice for this already.
- Steve ChenMar 31, 2022Former Employeeit is in-between increased to 3000 at organizational level and 500 at site level 😉
https://docs.microsoft.com/en-us/sharepoint/restricted-domains-sharing