We have a need to white list our SharePoint Online tenant to certain domains for external sharing. Luckily for us, there is the
SharingAllowedDomainList property in the
The documentation states:
Specifies a list of email domains that is allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, “contoso.com fabrikam.com”.
What is not clear, and cannot find any documentation on, is how to properly update this. If I have a list of domains already supplied, what happens when I need to add another programmatically? Is it simply a Set with this new domain and it will be appended or do I need to do a get first, append my domain to that variable, then set the domains with this?
Unfortunately, I'm not in a position to test this properly. I need to know what the behavior of the set command is if there are domains already listed. Is it an append or is it an overwrite?