Get-EntraDirectoryObjectOnPremisesProvisioningError
Returns directory synchronization errors when synchronizing on-premises directories to Microsoft Entra ID.
Syntax
Default (Default)
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. This parameter provides compatibility with Azure AD and MSOnline for partner scenarios. TenantID is the signed-in user's tenant ID.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
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.