Get-EntraDirSyncConfiguration

Gets the directory synchronization settings.

Syntax

Get-EntraDirSyncConfiguration
   [-TenantId <String>]
   [<CommonParameters>]

Description

The Get-EntraDirSyncConfiguration cmdlet gets the directory synchronization settings. See configuration settings details.

For delegated scenarios, the user needs to be assigned the Global Administrator role.

Examples

Example 1: Get directory synchronization settings

Connect-Entra -Scopes 'OnPremDirectorySynchronization.ReadWrite.All'
Get-EntraDirSyncConfiguration

AccidentalDeletionThreshold DeletionPreventionType
--------------------------- ----------------------
                        500 enabledForCount

This example gets directory synchronization settings.

Example 2: Get directory synchronization settings by TenantId

Connect-Entra -Scopes 'OnPremDirectorySynchronization.ReadWrite.All'
$tenant = Get-EntraTenantDetail
Get-EntraDirSyncConfiguration -TenantId $tenant.Id

AccidentalDeletionThreshold DeletionPreventionType
--------------------------- ----------------------
                        500 enabledForCount

This example gets directory synchronization settings by TenantId.

  • -TenantId Specifies the unique ID of the tenant.

Parameters

-TenantId

The unique ID of the tenant for the operation. If TenantId isn't provided, it defaults to the current user's tenant. This parameter applies only to partner users.

Type:System.String
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.Nullable`1[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]