How to manage B2B domain block and allow list via Graph

Mark Brown 25 Reputation points


How can you manage the Azure AD B2B policy for allowing or blocking domains via Graph? Basically what is the Graph equivalent of "New-AzureADPolicy -Definition $policyValue -DisplayName B2BManagementPolicy -Type B2BManagementPolicy -IsOrganizationDefault $true"

If this cannot be done in Graph, are you able to confirm whether the AzureADPreview module will be retiring when the AzureAD one is in June?


Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,370 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,759 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,517 questions
0 comments No comments
{count} vote

Accepted answer
  1. Vasil Michev 100K Reputation points MVP

    The policy (and few other ones) is exposed under the following Graph endpoint: ""

    There is no direct cmdlet to manage it, however you can always use the generic Invoke-MgGraphRequest one.

0 additional answers

Sort by: Most helpful