Guidance required on how to add 3rd party domains into Allow List at tenant level using Power Automate or Flow #4070
Unanswered
Debalina-Bupa
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Issue Description:
Guidance required on how to add 3rd party domains into Allow List at tenant level using Power Automate or Flow
Summary:
We want to do the following actions to automate through PA or PF
• Exporting the allowed list at Tenant level (for backup)
• Adding the new domains in the allow list
We have used the below code but we believe that this code is not only changing the 'allow' list, it is also changing the tenant level slider settings as well for OneDrive:
Exporting the whitelisted domains
$allowedDomains = Get-PnPTenant -Connection $AdminConnection | select -ExpandProperty SharingAllowedDomainList
New domains added in the collection
allowedDomains += $DomainToAdd
Replace the new collection in the allowed list
Set-PnPTenant -SharingAllowedDomainList $allowedDomains -Connection $AdminConnection
While testing the above code, we think the slider settings have been changed for ‘External Sharing’. (See screenshot 1 attached)
Expected behaviour : We don’t want to change the slider settings. We want to make sure that our piece of code only add the required domains in the allowed list.
Please can you advise 1) if its possible for the code above to change the slider at tenant level and 2) what code we should use to achieve the same objective.
Beta Was this translation helpful? Give feedback.
All reactions