How to manage B2B domain block and allow list via Graph

Mark Brown 25 Reputation points
2023-05-23T11:29:05.2233333+00:00

Hi,

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?

Mark

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Entra Microsoft Entra ID
Microsoft Security Microsoft Graph
0 comments No comments
{count} vote

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2023-05-23T16:32:58.8+00:00

    The policy (and few other ones) is exposed under the following Graph endpoint: "https://graph.microsoft.com/beta/legacy/policies"

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.