External Collaboration Settings: Add Domains in Bulk

Todd Nelson 21 Reputation points
2022-04-01T16:15:12.247+00:00

Within 'External Collaboration Settings' under 'User Settings' in Azure, is there a way to add a list of domains in bulk?

I know this is possible for adding users via the browser and Graph API but it does not seem possible for domains.

Just need to know if this is possible for domains via browser or PowerShell, etc. I don't want to add domains one by one using a copy paste method. And yes, we have a need to add more than just a handful of domains at a time as needed.

If possible, please provide details, script, etc.

Thank you.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,185 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andy David - MVP 143.8K Reputation points MVP
    2022-04-01T16:42:34.78+00:00

1 additional answer

Sort by: Most helpful
  1. Todd Nelson 21 Reputation points
    2022-04-04T13:36:45.583+00:00

    @Andy David - MVP ,

    If you are interested, support provided me this info that seems to allow for appending to the existing list...

    Kindly follow the steps in this GitHub repo GitHub - pstepien77/set-b2bmanagementpolicy: Azure - Manage B2B Management Policy settings with PowerShell.

    Download the implementation.pdf file for a step-by-step guide. The step to Append allowed/blocked domain list is found on page 14. Also take note of the policy limit on page 17.

    Save the Set-B2BManagementPolicy.ps1 in your local machine before you begin.