Get-EntraDirectoryObjectOnPremisesProvisioningError
Returns directory synchronization errors when synchronizing on-premises directories to Microsoft Entra ID.
Syntax
Get-EntraDirectoryObjectOnPremisesProvisioningError
[-TenantId <String>]
[<CommonParameters>]
Description
The Get-EntraDirectoryObjectOnPremisesProvisioningError
returns directory synchronization errors for the user
, group
, or organizational contact
entities when synchronizing on-premises directories to Microsoft Entra ID.
Examples
Example 1: Get directory synchronization errors
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read'
Get-EntraDirectoryObjectOnPremisesProvisioningError | Format-Table -AutoSize
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ----
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:ConflictMail@contoso.com 3/14/2022 11:46:44 PM ConflictMail1 True
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict BlockSoftMatch1@contoso.com 7/4/2024 12:06:16 AM BlockSoftMatch1 True
This command lists directory sync errors for users
, groups
, or organizational contacts
during on-premises synchronization to Microsoft Entra ID.
Example 2: Get directory synchronization errors with filtering
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read'
Get-EntraDirectoryObjectOnPremisesProvisioningError | where-Object propertyCausingError -eq 'UserPrincipalName' | Format-Table -AutoSize
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ----
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:ConflictMail@contoso.com 3/14/2022 11:46:44 PM ConflictMail1 True
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict BlockSoftMatch1@contoso.com 7/4/2024 12:06:16 AM BlockSoftMatch1 True
This command lists directory sync errors for users
, groups
, or organizational contacts
during on-premises synchronization to Microsoft Entra ID.
Example 3: Get directory synchronization errors for a specific tenant
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read'
$tenant = Get-EntraTenantDetail
Get-EntraDirectoryObjectOnPremisesProvisioningError -TenantId $tenant.Id | Format-Table -AutoSize
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ----
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:ConflictMail@contoso.com 3/14/2022 11:46:44 PM ConflictMail1 True
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict BlockSoftMatch1@contoso.com 7/4/2024 12:06:16 AM BlockSoftMatch1 True
This command lists directory sync errors for users
, groups
, or organizational contacts
during on-premises synchronization to Microsoft Entra ID.
-TenantId
Specifies the unique ID of the tenant.
Parameters
-TenantId
The unique tenant ID for the operation. If not provided, it defaults to the current user's tenant. This parameter is included for compatibility with legacy modules.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
System.Nullable`1[[System.Guid, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]