Update crossTenantAccessPolicyConfigurationDefault

Namespace: microsoft.graph

Update the default configuration of a cross-tenant access policy.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) Policy.ReadWrite.CrossTenantAccess
Delegated (personal Microsoft account) Not applicable
Application Policy.ReadWrite.CrossTenantAccess

HTTP request

PATCH /policies/crossTenantAccessPolicy/default

Request headers

Name Description
Authorization Bearer {token}. Required.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
inboundTrust crossTenantAccessPolicyInboundTrust Determines the default configuration for trusting other Conditional Access claims from external Azure AD organizations.
b2bCollaborationInbound crossTenantAccessPolicyB2BSetting Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B collaboration.
b2bCollaborationOutbound crossTenantAccessPolicyB2BSetting Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B collaboration.
b2bDirectConnectInbound crossTenantAccessPolicyB2BSetting Defines your default configuration for users from other organizations accessing your resources via Azure AD B2B direct connect.
b2bDirectConnectOutbound crossTenantAccessPolicyB2BSetting Defines your default configuration for users in your organization going outbound to access resources in another organization via Azure AD B2B direct connect.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

PATCH https://graph.microsoft.com/v1.0/policies/crossTenantAccessPolicy/default
Content-Type: application/json

{
  "b2bCollaborationOutbound":
  {
    "usersAndGroups":
    {
      "accessType": "blocked",
      "targets": [
        {
          "target": "0be493dc-cb56-4a53-936f-9cf64410b8b0",
          "targetType": "group"
        }
      ]
    },
    "applications":
    {
      "accessType": "blocked",
      "targets": [
        {
          "target": "AllApplications",
          "targetType": "application"
        }
      ]
    }
  }
}

Response

HTTP/1.1 204 No Content