You can specify the following properties when you create a crossTenantIdentitySyncPolicyPartner.
Property
Type
Description
displayName
String
Display name for the cross-tenant user synchronization policy. Use the name of the partner Azure Active Directory tenant to easily identify the policy. Optional.
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var requestBody = new Microsoft.Graph.Policies.CrossTenantAccessPolicy.Partners.Item.IdentitySynchronization.IdentitySynchronizationPutRequestBody
{
AdditionalData = new Dictionary<string, object>
{
{
"displayName" , "Fabrikam"
},
{
"userSyncInbound" , new
{
IsSyncAllowed = true,
}
},
},
};
await graphClient.Policies.CrossTenantAccessPolicy.Partners["{crossTenantAccessPolicyConfigurationPartner-tenantId}"].IdentitySynchronization.PutAsync(requestBody);
<?php
// THIS SNIPPET IS A PREVIEW FOR THE KIOTA BASED SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($requestAdapter);
$requestBody = new IdentitySynchronizationPutRequestBody();
$additionalData = [
'displayName' => 'Fabrikam',
'userSyncInbound' => $requestBody = new UserSyncInbound();
$requestBody->setIsSyncAllowed(true);
$requestBody->setUserSyncInbound($userSyncInbound);
];
$requestBody->setAdditionalData($additionalData);
$graphServiceClient->policies()->crossTenantAccessPolicy()->partners()->byPartnerId('crossTenantAccessPolicyConfigurationPartner-tenantId')->identitySynchronization()->put($requestBody);