-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Get-EntraDirectoryObjectOnPremisesProvisioningError (#1305)
* fix Get-EntraDirectoryObjectOnPremisesProvisioningError * Update tests * Fix tests * [Enhancements] Get-EntraDirectoryObjectOnPremisesProvisioningError (#1308) * Add extra lines * Fix beta mock * Adding formatting --------- Co-authored-by: Steve Mutungi <[email protected]>
- Loading branch information
1 parent
4452a14
commit c9a5790
Showing
6 changed files
with
216 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ description: This article provides details on the Get-EntraBetaDirectoryObjectOn | |
|
||
|
||
ms.topic: reference | ||
ms.date: 08/19/2024 | ||
ms.date: 01/26/2025 | ||
ms.author: eunicewaweru | ||
ms.reviewer: stevemutungi | ||
manager: CelesteDG | ||
|
@@ -21,7 +21,7 @@ schema: 2.0.0 | |
|
||
## Synopsis | ||
|
||
Returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
Returns directory synchronization errors when synchronizing on-premises directories to Microsoft Entra ID. | ||
|
||
## Syntax | ||
|
||
|
@@ -33,48 +33,66 @@ Get-EntraBetaDirectoryObjectOnPremisesProvisioningError | |
|
||
## Description | ||
|
||
The `Get-EntraBetaDirectoryObjectOnPremisesProvisioningError` returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
The `Get-EntraBetaDirectoryObjectOnPremisesProvisioningError` returns directory synchronization errors for the `user`, `group`, or `organizational contact` entities when synchronizing on-premises directories to Microsoft Entra ID. | ||
|
||
## Examples | ||
|
||
### Example 1: Return whether Microsoft Entra ID has objects with DirSync provisioning error | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
Get-EntraBetaDirectoryObjectOnPremisesProvisioningError | ||
Get-EntraBetaDirectoryObjectOnPremisesProvisioningError | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
False | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 7/4/2024 12:06:16 AM BlockSoftMatch1 True | ||
``` | ||
|
||
This command returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
This command lists directory sync errors for `users`, `groups`, or `organizational contacts` during on-premises synchronization to Microsoft Entra ID. | ||
|
||
### Example 2: Return whether Microsoft Entra ID has objects with DirSync provisioning error | ||
### Example 2: Get directory synchronization errors with filtering | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
Get-EntraBetaDirectoryObjectOnPremisesProvisioningError | where-Object propertyCausingError -eq 'UserPrincipalName' | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 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 | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
$tenant = Get-EntraBetaTenantDetail | ||
Get-EntraBetaDirectoryObjectOnPremisesProvisioningError -TenantId $tenant.Id | ||
Get-EntraBetaDirectoryObjectOnPremisesProvisioningError -TenantId $tenant.Id | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
False | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 7/4/2024 12:06:16 AM BlockSoftMatch1 True | ||
``` | ||
|
||
This command returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
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 ID of the tenant to perform the operation on. | ||
|
||
If this isn't provided then the value defaults to the tenant of the current user. | ||
|
||
This parameter is only applicable to partner users. | ||
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. | ||
|
||
```yaml | ||
Type: System.String | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ description: This article provides details on the Get-EntraDirectoryObjectOnPrem | |
|
||
|
||
ms.topic: reference | ||
ms.date: 06/26/2024 | ||
ms.date: 01/26/2025 | ||
ms.author: eunicewaweru | ||
ms.reviewer: stevemutungi | ||
manager: CelesteDG | ||
|
@@ -21,7 +21,7 @@ schema: 2.0.0 | |
|
||
## Synopsis | ||
|
||
Returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
Returns directory synchronization errors when synchronizing on-premises directories to Microsoft Entra ID. | ||
|
||
## Syntax | ||
|
||
|
@@ -33,48 +33,66 @@ Get-EntraDirectoryObjectOnPremisesProvisioningError | |
|
||
## Description | ||
|
||
The `Get-EntraDirectoryObjectOnPremisesProvisioningError` returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
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: Return whether Microsoft Entra ID has objects with DirSync provisioning error | ||
### Example 1: Get directory synchronization errors | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
Get-EntraDirectoryObjectOnPremisesProvisioningError | ||
Get-EntraDirectoryObjectOnPremisesProvisioningError | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
False | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 7/4/2024 12:06:16 AM BlockSoftMatch1 True | ||
``` | ||
|
||
This command returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
This command lists directory sync errors for `users`, `groups`, or `organizational contacts` during on-premises synchronization to Microsoft Entra ID. | ||
|
||
### Example 2: Return whether Microsoft Entra ID has objects with DirSync provisioning error | ||
### Example 2: Get directory synchronization errors with filtering | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
Get-EntraDirectoryObjectOnPremisesProvisioningError | where-Object propertyCausingError -eq 'UserPrincipalName' | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 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 | ||
|
||
```powershell | ||
Connect-Entra -Scopes 'User.Read.All', 'Directory.Read.All', 'Group.Read.All', 'Contacts.Read' | ||
$tenant = Get-EntraTenantDetail | ||
Get-EntraDirectoryObjectOnPremisesProvisioningError -TenantId $tenant.Id | ||
Get-EntraDirectoryObjectOnPremisesProvisioningError -TenantId $tenant.Id | Format-Table -AutoSize | ||
``` | ||
|
||
```Output | ||
False | ||
Id PropertyCausingError UserPrincipalName Category Value OccurredDateTime DisplayName OnPremisesSyncEnabled Mail | ||
-- -------------------- ----------------- -------- ----- ---------------- ----------- --------------------- ---- | ||
cccccccc-2222-3333-4444-dddddddddddd ProxyAddresses PropertyConflict SMTP:[email protected] 3/14/2022 11:46:44 PM ConflictMail1 True | ||
eeeeeeee-4444-5555-6666-ffffffffffff UserPrincipalName PropertyConflict [email protected] 7/4/2024 12:06:16 AM BlockSoftMatch1 True | ||
``` | ||
|
||
This command returns whether Microsoft Entra ID has objects with DirSync provisioning error. | ||
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 ID of the tenant to perform the operation on. | ||
|
||
If this isn't provided then the value defaults to the tenant of the current user. | ||
|
||
This parameter is only applicable to partner users. | ||
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. | ||
|
||
```yaml | ||
Type: System.String | ||
|
Oops, something went wrong.