SYNOPSIS
Lists the users carrying provisioning errors in Microsoft Entra ID.SYNTAX
DESCRIPTION
Scans the tenant (or a single user) for the two kinds of provisioning errors exposed on the user object by Microsoft Graph:- serviceProvisioningErrors: errors raised by a downstream Microsoft 365 service (typically Exchange Online) when provisioning the user. The error detail is an XML payload, parsed to surface the service name, the error code and the description.
- onPremisesProvisioningErrors: synchronization errors coming from Entra Connect, typically an attribute conflict (AttributeValueMustBeUnique on proxyAddresses or userPrincipalName).
EXAMPLES
EXAMPLE 1
EXAMPLE 2
EXAMPLE 3
EXAMPLE 4
EXAMPLE 5
PARAMETERS
-ErrorSource
(Optional) Restricts the results to one error source. Valid values: All, ServiceProvisioning, OnPremisesSync. Default is All.-ExportToExcel
(Optional) If specified, exports the results to an Excel file in the user’s profile directory.-ForceNewToken
Switch parameter to force getting a new token from Microsoft Graph.-Identity
(Optional) UserPrincipalName or object id of a single user to check. When omitted, the whole tenant is scanned.-IncludeResolved
(Optional) Also returns the service provisioning errors flagged as resolved by Microsoft Graph. Ignored for on-premises errors, which Graph only keeps while they are active.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
System.String
OUTPUTS
System.Collections.Generic.List[PSCustomObject]
System.Collections.Generic.List`1[[System.Management.Automation.PSObject, System.Management.Automation, Version=7.6.0.500, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
NOTES
OUTPUT PROPERTIES UserPrincipalName : the user carrying the error DisplayName : display name of the user ErrorSource : ServiceProvisioning (downstream service) or OnPremisesSync (Entra Connect) Service : service instance for service errors (e.g. exchange), empty for sync errors Category : error code for service errors, Graph category for sync errors (PropertyConflict for AttributeValueMustBeUnique) Property : attribute causing a sync error (e.g. ProxyAddresses), empty for service errors Description : parsed error description for service errors, conflicting value for sync errors IsResolved : True/False for service errors, empty for sync errors OccurredDateTime : when the error was recorded OnPremisesSyncEnabled : whether the user is synchronized from on-premises Id : object id of the user Required Microsoft Graph permissions:- User.Read.All