Skip to main content

Get-EntraConnectSyncObjectReport

SYNOPSIS

Reports the objects of the Microsoft Entra Connect Sync connector spaces: sync rules applied, password sync status and sync or export errors.

SYNTAX

DESCRIPTION

Reads the connector space objects with Get-ADSyncCSObject on the Entra Connect Sync server and returns one row per object: the sync rules applied, the password sync status when asked, the HasSyncError and HasExportError flags and the error texts. By default every object of every Active Directory connector is returned. Use -ErrorsOnly to keep only the objects in error. The password sync status is read from the object log (Get-ADSyncCSObjectLog, one call per object, slow on a large directory) and is collected only with -IncludePasswordSync. With -GroupByErrorType, the function returns a summary instead: the number of objects per error type, per connector and per error kind (Synchronization or Export). With -LastRun, the function returns the run history instead: for each connector, the last run of each run profile (Delta Import, Delta Synchronization, Export…), as shown in the Operations tab of the Synchronization Service Manager, with its result, duration, counters and errors. Must be run on the Entra Connect Sync server (ADSync module) with a member of the ADSyncAdmins group.

EXAMPLES

EXAMPLE 1

Lists every object in synchronization or export error, on all AD connectors.

EXAMPLE 2

Shows how many objects fail for each error type.

EXAMPLE 3

Shows the rules applied to one user and its last password sync event.

EXAMPLE 4

Exports the user objects in error to a CSV file.

EXAMPLE 5

Shows the last run of each run profile on every connector, AD and Entra ID.

PARAMETERS

-ConnectorName

Name of one or more connectors to read. By default, all connectors of type AD (all connectors with -LastRun).

-DistinguishedName

Distinguished name of a single object to read.

-ErrorsOnly

Keeps only the objects with a synchronization error or an export error.

-ExportPath

Path of a CSV file to write the result to. The result is still returned.

-GroupByErrorType

Returns the error count per error type instead of one row per object. Implies -ErrorsOnly.

-IncludePasswordSync

Adds the last password sync status and timestamp of each object, and whether the password sync rule applies. One log query per object: combine with -ErrorsOnly or -DistinguishedName on a large directory.

-LastRun

Returns the last run of each run profile per connector instead of the connector space objects. Only -ConnectorName, -RunHistoryCount and -ExportPath apply with it.

-ObjectType

Keeps only objects of these types, for example user, group, contact or computer.

-RunHistoryCount

Number of recent runs read per connector to find the last run of each profile. Default 50.

-Top

Stops after this number of returned objects.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Requires the ADSync module, installed with Microsoft Entra Connect Sync. The error text of the connector space is returned as is: the …ErrorType columns hold its first line (for example permission-issue, attribute-value-must-be-unique), the …Error columns the full text. Not documented.