Reset any changes made to the default configuration in a cross-tenant access policy back to the system default.
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
POST /policies/crossTenantAccessPolicy/default/resetToSystemDefault
Request headers
Name
Description
Authorization
Bearer {token}. Required.
Request body
Do not supply a request body for this method.
Response
If successful, this action returns a 204 No Content response code. To confirm that the default configuration has been restored to the system defaults, run Get crossTenantAccessPolicyConfigurationDefault and confirm that isSystemDefault is set to true.
//THE GO SDK IS IN PREVIEW. NON-PRODUCTION USE ONLY
graphClient := msgraphsdk.NewGraphServiceClientWithCredentials(cred, scopes)
graphClient.Policies().CrossTenantAccessPolicy().Default().ResetToSystemDefault().Post(context.Background(), nil)
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$graphServiceClient->policies()->crossTenantAccessPolicy()->default()->resetToSystemDefault()->post();