Activities¶
Activity cmdlets retrieve and inspect the execution history of operations within JIM. Activities track all operations: synchronisation runs, data generation, certificate management, and other administrative actions. Example data generation is recorded as a Data Generation Activity, separate from changes to an Example Data Template. Use these cmdlets to review Activities and inspect the child Activities a parent operation spawned. For a Run Profile execution's counts of what it processed, changed and failed, see Activity Statistics; to find out what happened to one object in a run, and why, see Execution Items.
Get-JIMActivity¶
Retrieves activity history from JIM. Activities are created automatically whenever an operation runs, providing a full audit trail of synchronisation runs, data generation tasks, certificate management operations, and other administrative actions.
Syntax¶
# List (default)
Get-JIMActivity [-Search <string>] [-Page <int>] [-PageSize <int>] [-Operation <string[]>] [-Outcome <string[]>] [-Status <string[]>] [-InitiatedById <guid>] [-InitiatedBy <string>] [-HasChildActivities <bool>] [-CreatedFrom <datetime>] [-CreatedTo <datetime>] [-ConnectedSystem <string[]>] [-RunProfile <string[]>] [-ScheduledOnly <bool>] [-ScheduleId <guid[]>]
# Follow
Get-JIMActivity -Id <guid> -Follow [-IntervalSeconds <int>] [-MaxPolls <int>]
# ExecutionItems
Get-JIMActivity -Id <guid> -ExecutionItems
# ById
Get-JIMActivity -Id <guid>
Parameters¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Id |
guid |
Yes (Follow, ExecutionItems, ById) | The Activity to get. Accepts pipeline input by property name. | |
Search |
string |
No (List) | Return only the Activities whose target name or type contains this text; "Active Directory", for example, finds the Activities of that Connected System. | |
Page |
int |
No (List) | 1 |
The page of Activities to return. At least 1. |
PageSize |
int |
No (List) | 20 |
How many Activities per page. From 1 to 100. |
Operation |
string[] |
No (List) | Return only the Activities that performed one of these operations, for example Execute for a Run Profile execution, or Receive for the requests a SCIM client sent to a Connected System's SCIM endpoint. One of Create, Read, Update, Delete, Clear, Execute, ImportHierarchy, ImportSchema, Revert, Reset, Authenticate, Preview or Receive. |
|
Outcome |
string[] |
No (List) | Return only the Activities that recorded at least one of these outcomes, for example Errors for runs that recorded an error. One of Added, Updated, Deleted, Projected, Joined, AttributeFlows, Disconnected, DriftCorrections, Provisioned, Exported, Deprovisioned, Created, PendingExports or Errors. |
|
Status |
string[] |
No (List) | Return only the Activities with one of these statuses. One of InProgress, Complete, CompleteWithWarning, CompleteWithError, FailedWithError or Cancelled. |
|
InitiatedById |
guid |
No (List) | Return only the Activities initiated by this principal (a Metaverse Object or API key). -InitiatedBy matches on the recorded name instead. |
|
InitiatedBy |
string |
No (List) | Return only the Activities whose initiator's recorded name contains this text, case-insensitively. | |
HasChildActivities |
bool |
No (List) | Return only the Activities that have child Activities ($true), or only those that have none ($false). Omit it to return both. |
|
CreatedFrom |
datetime |
No (List) | Return only the Activities created at or after this time, which is converted to UTC. | |
CreatedTo |
datetime |
No (List) | Return only the Activities created at or before this time, which is converted to UTC. | |
ConnectedSystem |
string[] |
No (List) | Return only the Activities of these Connected Systems, by name, ignoring case. | |
RunProfile |
string[] |
No (List) | Return only the executions of these Run Profiles, by name, ignoring case. | |
ScheduledOnly |
bool |
No (List) | Return only the Activities a Schedule produced ($true), or only those nobody scheduled ($false). Omit it to return both. |
|
ScheduleId |
guid[] |
No (List) | Return only the Activities these Schedules produced. | |
ExecutionItems |
switch |
Yes (ExecutionItems) | Return the Activity's Run Profile Execution Items: what happened to each object. | |
Follow |
switch |
Yes (Follow) | Follow the Activity's progress until it finishes, like tail -f, showing the step it is on, object counts, throughput and the estimated time remaining. Ctrl+C stops following early. | |
IntervalSeconds |
int |
No (Follow) | 2 |
How many seconds to wait between reads of the progress. From 1 to 300. |
MaxPolls |
int |
No (Follow) | How many times to read the progress before following stops, whether or not the Activity has finished, for a script that must not wait indefinitely. Omit it to follow until the Activity finishes. At least 1. |
Output¶
A list returns each Activity's header, and -Id the Activity in full. -ExecutionItems returns each of the Activity's Run Profile Execution Items. -Follow shows progress while it follows, then returns the Activity in full.
An Activity read in full carries ConfigurationChangeSynchronisations. For a configuration change Activity it has one entry per Object Type the change affects, saying whether a synchronisation has applied the change yet. For a synchronisation run it has one entry per Object Type the run processed in full because of changes saved before it started, with the ObjectCount processed and whether it applied them. It is empty for every other Activity.
A configuration change Activity's entry also has PredictionComparison once a synchronisation has applied the change, and only then: what the Configuration Change Preview that informed the save predicted, beside what the synchronisation did. It has the PreviewActivityId and Lines, each with an Outcome, the Predicted count and the Actual count. It is $null unless that synchronisation applied exactly one change to the Object Type, the preview was current, complete and of the saved Synchronisation Rule, and the preview counts the outcome the way a run records it (today the scoping preview's Projected and Joined). The Actual count includes objects of the type that changed for other reasons since the preview.
By default:
| Property | Type | Description |
|---|---|---|
Id |
guid |
The unique identifier of the Activity. |
Created |
datetime |
When the Activity was created. |
Executed |
datetime |
When the Activity started executing. |
Status |
string |
The current status of the Activity. One of NotSet, InProgress, Complete, CompleteWithWarning, CompleteWithError, FailedWithError or Cancelled. |
TargetType |
string |
The type of target this Activity operates on. One of NotSet, ExampleDataTemplate, ConnectedSystem, ConnectedSystemRunProfile, SynchronisationRule, MetaverseObject, TrustedCertificate, ObjectMatchingRule, MetaverseAttribute, ServiceSetting, HistoryRetentionCleanup, MetaverseObjectType, System, Schedule, TemporalScopeReconciliation, ApiKey, Role, PredefinedSearch, ConnectorDefinition, ExampleDataSet, SystemInitialisation, DataGeneration, Authentication, MetaverseObjectHousekeeping, ConnectedSystemObject, PasswordSynchronisation, ScimRequests or ExchangeRecipient. |
TargetOperationType |
string |
The operation being performed. One of Create, Read, Update, Delete, Clear, Execute, ImportHierarchy, ImportSchema, Revert, Reset, Authenticate, Preview, SetPassword, SchemaRefreshRemoval, RetryPasswordDelivery, CancelPasswordDelivery, DiscoverAuxiliaryClasses, RecallAttributeValues, Deprovision, RestartGeneratedValues, AllowGeneratedValueRename, RetryGeneratedValue, Receive, SetExchangeRecipient, WithdrawExchangeRecipient, ReplaceExchangeRecipient or RetryExchangeRecipient. |
TargetName |
string |
The name of the target object. |
TargetContext |
string |
Additional context for the target, such as the parent entity name. For example, for a Run Profile Activity this would be the Connected System name. |
Message |
string |
Progress message for the Activity. |
MessageKey |
string |
The message's key, for showing it in another language. |
MessageArguments |
object[] |
The message's values, in order. Each has Text, Number, Date and Message. |
MessageCount |
long |
Picks a counted message's singular or plural form. |
InitiatedByType |
string |
The type of security principal that initiated this Activity. One of NotSet, User, ApiKey, System or Anonymous. |
InitiatedById |
guid |
The unique identifier of the security principal that initiated this Activity. |
InitiatedByName |
string |
Name of the user or API key that initiated this Activity. |
ObjectsToProcess |
int |
Number of objects to process (for progress tracking). |
ObjectsProcessed |
int |
Number of objects processed so far (for progress tracking). |
ExecutionTime |
string |
How long the Activity took to execute (once complete). |
TotalActivityTime |
string |
Total time from creation to completion. |
ConnectedSystemRunType |
string |
The run type, for a Run Profile execution. One of NotSet, FullImport, DeltaImport, FullSynchronisation, DeltaSynchronisation or Export. |
TotalAdded |
int |
Count of new Connected System Objects added to the Connector Space during import. |
TotalUpdated |
int |
Count of existing Connected System Objects updated during import. |
TotalDeleted |
int |
Count of Connected System Objects marked as deleted (source system deletion detected). |
TotalProjected |
int |
Count of new Metaverse Objects created via projection. |
TotalJoined |
int |
Count of Connected System Objects joined to existing Metaverse Objects. |
TotalAttributeFlows |
int |
Count of Attribute Flow operations. |
TotalDisconnected |
int |
Count of Connected System Objects disconnected from Metaverse Objects. |
TotalDisconnectedOutOfScope |
int |
Count of Connected System Objects disconnected because they fell out of scope of import Synchronisation Rule scoping criteria. |
TotalOutOfScopeRetainJoin |
int |
Count of Connected System Objects that fell out of scope but remained joined (InboundOutOfScopeAction = RemainJoined). |
TotalDriftCorrections |
int |
Count of Connected System Objects where drift was detected and corrective Pending Exports were created. |
TotalProvisioned |
int |
Count of Connected System Objects provisioned to target Connected Systems during synchronisation. |
TotalExported |
int |
Count of objects exported to target systems (includes both initial creation and subsequent updates). |
TotalDeprovisioned |
int |
Count of objects deprovisioned from target systems. |
TotalCreated |
int |
Count of Metaverse Objects created directly (by example data generation or in the portal) rather than by projection. |
TotalPendingExports |
int |
Count of Pending Exports staged for the next export run. |
TotalErrors |
int |
Count of Run Profile Execution Items with errors. |
ChildActivityCount |
int |
The number of direct child Activities linked to this Activity. Zero for Activities with no children. |
ScheduleExecutionId |
guid |
If a Schedule Execution produced this Activity, the execution's unique identifier. Empty otherwise. |
ScheduleStepIndex |
int |
The step within the Schedule Execution that produced this Activity (0-based). Read with ScheduleExecutionId to identify exactly which step ran. Empty when no Schedule produced it. |
ScheduledByScheduleId |
guid |
If a Schedule produced this Activity, the Schedule's unique identifier. Empty otherwise. |
ScheduledByScheduleName |
string |
The producing Schedule's name, as a snapshot taken when the Activity was created, so history still reads correctly after the Schedule has been renamed or deleted. Empty when no Schedule produced this Activity. |
SecurityEventReason |
string |
Security audit events only: why the authentication failed, as a short sanitised reason such as "Access token expired" or "API key not found". Empty for every other Activity, and for a successful sign-in. |
ClientIpAddress |
string |
Security audit events only: the client IP address the attempt came from, where one was available. |
ApiKeyPrefix |
string |
Security audit events only: the identifying prefix of the API key involved, for example jim_ak_7f3a. Never the key itself. Empty when no API key was involved. |
AttemptCount |
int |
Failed authentication events only: how many matching attempts (same reason, client IP and API key prefix) this Activity counts within its 15-minute window. |
FirstSeen |
datetime |
Failed authentication events and SCIM request summaries only: when the first attempt or request this Activity counts was made (UTC). |
LastSeen |
datetime |
Failed authentication events and SCIM request summaries only: when the most recent attempt or request this Activity counts was made (UTC). It advances as more arrive, so a poller can pick up a changed count by watching it. |
AggregationWindowStart |
datetime |
Failed authentication events and SCIM request summaries only: the start of the 15-minute UTC window this Activity aggregates. Anything after the window ends is counted on a new Activity, so once the window has passed this one no longer changes. |
ScimRequests |
object |
SCIM request summaries only: what a SCIM client's requests did within the window. Empty for every other Activity. It has Created, Updated, Deleted and Rejected. |
With -Id or -Follow:
| Property | Type | Description |
|---|---|---|
Id |
guid |
The unique identifier of the Activity. |
ParentActivityId |
guid |
Parent Activity ID if this was triggered by another Activity. |
ParentRunProfileExecutionItemId |
guid |
The Run Profile Execution Item this Activity follows up, if any. |
Created |
datetime |
When the Activity was created. |
Executed |
datetime |
When the Activity started executing. |
Status |
string |
The current status of the Activity. One of NotSet, InProgress, Complete, CompleteWithWarning, CompleteWithError, FailedWithError or Cancelled. |
TargetType |
string |
The type of target this Activity operates on. One of NotSet, ExampleDataTemplate, ConnectedSystem, ConnectedSystemRunProfile, SynchronisationRule, MetaverseObject, TrustedCertificate, ObjectMatchingRule, MetaverseAttribute, ServiceSetting, HistoryRetentionCleanup, MetaverseObjectType, System, Schedule, TemporalScopeReconciliation, ApiKey, Role, PredefinedSearch, ConnectorDefinition, ExampleDataSet, SystemInitialisation, DataGeneration, Authentication, MetaverseObjectHousekeeping, ConnectedSystemObject, PasswordSynchronisation, ScimRequests or ExchangeRecipient. |
TargetOperationType |
string |
The operation being performed. One of Create, Read, Update, Delete, Clear, Execute, ImportHierarchy, ImportSchema, Revert, Reset, Authenticate, Preview, SetPassword, SchemaRefreshRemoval, RetryPasswordDelivery, CancelPasswordDelivery, DiscoverAuxiliaryClasses, RecallAttributeValues, Deprovision, RestartGeneratedValues, AllowGeneratedValueRename, RetryGeneratedValue, Receive, SetExchangeRecipient, WithdrawExchangeRecipient, ReplaceExchangeRecipient or RetryExchangeRecipient. |
TargetName |
string |
The name of the target object. |
TargetContext |
string |
Additional context for the target, such as the parent entity name. For example, for a Run Profile Activity this would be the Connected System name. |
Message |
string |
Progress message for the Activity. |
MessageKey |
string |
The message's key, for showing it in another language. |
MessageArguments |
object[] |
The message's values, in order. Each has Text, Number, Date and Message. |
MessageCount |
long |
Picks a counted message's singular or plural form. |
InitiatedByType |
string |
The type of security principal that initiated this Activity. One of NotSet, User, ApiKey, System or Anonymous. |
InitiatedById |
guid |
The unique identifier of the security principal that initiated this Activity. |
InitiatedByName |
string |
Name of the user or API key that initiated this Activity. |
ObjectsToProcess |
int |
Number of objects to process (for progress tracking). |
ObjectsProcessed |
int |
Number of objects processed so far (for progress tracking). |
ExecutionTime |
string |
How long the Activity took to execute (once complete). |
TotalActivityTime |
string |
Total time from creation to completion. |
WarningMessage |
string |
A warning that did not stop the Activity, for example that a Delta Import fell back to a Full Import. |
WarningMessageKey |
string |
The message's key, for showing it in another language. |
WarningMessageArguments |
object[] |
The message's values, in order. Each has Text, Number, Date and Message. |
WarningMessageCount |
long |
Picks a counted message's singular or plural form. |
ErrorMessage |
string |
Error message if the Activity failed. |
ErrorMessageKey |
string |
The message's key, for showing it in another language. |
ErrorMessageArguments |
object[] |
The message's values, in order. Each has Text, Number, Date and Message. |
ErrorMessageCount |
long |
Picks a counted message's singular or plural form. |
ErrorStackTrace |
string |
Error stack trace if the Activity failed. |
ErrorDetail |
string |
Structured detail about the failure, as JSON, where there is something specific worth acting on beyond the message. An LDAPS connection refused because of the directory server's certificate records that certificate here: its subject, issuer, the names it was issued for, its validity dates, its thumbprint, and which check it failed. Empty for failures with no structured detail. |
ConnectedSystemRunType |
string |
The run type, for a Run Profile execution. One of NotSet, FullImport, DeltaImport, FullSynchronisation, DeltaSynchronisation or Export. |
ConnectedSystemId |
int |
The Connected System ID if applicable. |
ConnectedSystemRunProfileId |
int |
The Run Profile ID if applicable. |
SyncRuleId |
int |
The Synchronisation Rule ID if applicable. |
MetaverseObjectId |
guid |
The Metaverse Object ID if applicable. |
ExampleDataTemplateId |
int |
The data generation template ID if applicable. |
ExecutionStats |
object |
Execution statistics for Run Profile Activities. It has TotalObjectsProcessed, TotalObjectChangeCount, TotalUnchanged, TotalObjectErrors, TotalObjectTypes, TotalCsoAdds, TotalCsoUpdates, TotalCsoDeletes, TotalProjections, TotalJoins, TotalAttributeFlows, TotalDisconnections, TotalDisconnectedOutOfScope, TotalOutOfScopeRetainJoin, TotalDriftCorrections, TotalProvisioned, TotalGeneratedValues, TotalGeneratedValueFailures, TotalGeneratedValuesRemediated, TotalGeneratedValuesNeedingDecision, TotalGeneratedValuesWaiting, TotalExported, TotalDeprovisioned, TotalPendingExports, TotalPendingExportsConfirmed, TotalPendingExportsRetrying, TotalPendingExportsFailed, TotalCreated, EntriesDiscardedByExcludedContainer, TotalEntriesDiscardedByExclusion and FollowUps. |
ExchangeOutcome |
object |
For the Activity of a queued Exchange recipient change, where the change stands now: queued, retrying, delivered, parked and so on. The Activity itself completes the moment the change is queued, so its status says nothing about whether Exchange has made the recipient. Empty for every other Activity. It has ActivityId, State, RecipientType, IsSettled, AttemptCount, NextAttemptAt, FailureKind, Message, OccurredAt, QueuedChangeId and CanRetry. |
Phases |
object[] |
The steps the Run Profile execution moved through, in run order, each with how it turned out and how long it took. Empty for other Activity types, and for runs that predate phase recording. Each has Key, Name, ParentKey, Order, Status, Started, Ended and DurationSeconds. |
ScheduleExecutionId |
guid |
If a Schedule Execution produced this Activity, the execution's unique identifier. Empty otherwise. |
ScheduleStepIndex |
int |
The step within the Schedule Execution that produced this Activity (0-based). Read with ScheduleExecutionId to identify exactly which step ran. Empty when no Schedule produced it. |
ScheduledByScheduleId |
guid |
If a Schedule produced this Activity, the Schedule's unique identifier. Empty otherwise. |
ScheduledByScheduleName |
string |
The producing Schedule's name, as a snapshot taken when the Activity was created, so history still reads correctly after the Schedule has been renamed or deleted. Empty when no Schedule produced this Activity. |
ChangeReason |
string |
For a configuration-change Activity, the optional reason supplied for the change. |
ConfigurationChangeVersion |
int |
For a configuration-change Activity, the per-object version number this change produced. |
ConfigurationChangeSnapshot |
object |
For a configuration-change Activity, the redacted snapshot of the object's state at this change; empty otherwise. It has SchemaVersion, ObjectType, ObjectId, ObjectGuidId, ObjectKey, ObjectName and Root. |
PreviewActivityId |
guid |
For a change made after reading a Configuration Change Preview, the preview's Activity id, as recorded by the change's previewActivityId; read it with GET /api/v1/previews/{activityId}. Empty when no preview informed the change, and for every other kind of Activity. |
PreviewOvertakenAt |
datetime |
When the preview in PreviewActivityId had been overtaken by the time the change was made: the latest run or configuration change recorded after the preview started that could change its answer. Empty when the preview was current, or when no preview informed the change. |
PreviewOvertakenBy |
string |
What had overtaken the preview in PreviewActivityId by the time the change was made, for example "Run Profile 'Delta Import' ran on Connected System 'HR Import'". Empty when PreviewOvertakenAt is. |
ClearedPendingExportCount |
int |
For a Connector Space clear, how many Pending Exports to the Connected System the clear discarded; empty for every other kind of Activity. |
ClearedConnectedSystemObjectCount |
int |
For a Connector Space clear, how many Connected System Objects the clear deleted; empty for every other kind of Activity. |
ClearedJoinRecordCount |
int |
For a Connector Space clear, how many Metaverse Objects were joined at the moment of the clear and so recorded for the post-clear reconciliation to expect back; empty for every other kind of Activity. Not a removal: these objects are what the next Full Synchronisation compares against once a Full Import has rebuilt the Connector Space. |
ExportCreatesWithheld |
int |
How many creates the Run Profile's Max creates limit withheld this run; they stay pending for a later Export run. Populated (zero when nothing was withheld) on every Export Activity; empty otherwise. |
ExportUpdatesWithheld |
int |
How many updates the Run Profile's Max updates limit withheld this run; they stay pending for a later Export run. Populated (zero when nothing was withheld) on every Export Activity; empty otherwise. |
ExportDeletesWithheld |
int |
How many deletes the Run Profile's Max deletes limit withheld this run; they stay pending for a later Export run. Populated (zero when nothing was withheld) on every Export Activity; empty otherwise. |
DetectedDeletionsWithheld |
int |
How many Connected System Objects the Run Profile's Max detected deletions and Max detected deletions percent limits withheld this run; those objects are left as they are, not marked as deleted. Populated (zero when nothing was withheld) on every Full Import Activity that ran deletion detection and every Delta Import Activity that completed, where it counts the deletes the Connector reported, and the objects deletion detection no longer found when the Delta Import read every object instead of its changes; empty on every other Activity, including a Full Import that imported zero objects and so skipped detection entirely. |
SecurityEventReason |
string |
Security audit events only: why the authentication failed, as a short sanitised reason such as "Access token expired" or "API key not found". Empty for every other Activity, and for a successful sign-in. |
ClientIpAddress |
string |
Security audit events only: the client IP address the attempt came from, where one was available. |
ApiKeyPrefix |
string |
Security audit events only: the identifying prefix of the API key involved, for example jim_ak_7f3a. Never the key itself. Empty when no API key was involved. |
AttemptCount |
int |
Failed authentication events only: how many matching attempts (same reason, client IP and API key prefix) this Activity counts within its 15-minute window. |
FirstSeen |
datetime |
Failed authentication events and SCIM request summaries only: when the first attempt or request this Activity counts was made (UTC). |
LastSeen |
datetime |
Failed authentication events and SCIM request summaries only: when the most recent attempt or request this Activity counts was made (UTC). It advances as more arrive, so a poller can pick up a changed count by watching it. |
AggregationWindowStart |
datetime |
Failed authentication events and SCIM request summaries only: the start of the 15-minute UTC window this Activity aggregates. Anything after the window ends is counted on a new Activity, so once the window has passed this one no longer changes. |
ScimRequests |
object |
SCIM request summaries only: what a SCIM client's requests did within the window. Empty for every other Activity. It has Created, Updated, Deleted and Rejected. |
ImportWatermarkFrom |
string |
Imports only: what the Connector had stored for the Connected System when the import began, exactly as it keeps it (for example {"changeSequence":8}). It holds the watermark the import read changes after, and can hold more: the LDAP Connector's also records what it detected about the directory. Empty for an import with nothing to start from, such as a Connected System's first, and for every other Activity. ImportReadRange says what it means. |
ImportWatermarkTo |
string |
Imports only: what the Connector stored for the Connected System once the import had staged everything it read, exactly as it keeps it. It holds the watermark the next import reads changes after. Empty when the import recorded none (it failed or was cancelled first, or its Connector keeps no watermark) and for every other Activity. ImportReadRange says what it means. |
ImportReadRange |
object |
Imports only: the two watermarks as the import's Connector reads them. Each gives a Kind (what the watermark counts in, such as access log or change sequence) and its Points: one per Object Type or source, named by its Scope, for a Connector that keeps several (the SQL Connector does), otherwise one with no Scope. Each point has a Number, a UTC Time or a Text value. Empty when the Activity recorded no watermark, its Connected System has since been deleted, or its Connector does not describe its watermarks. It has From and To. |
ImportPartitionWatermarksFrom |
object[] |
Imports by a Connector that keeps a Delta Import watermark for each partition (the LDAP Connector does): every partition the import read, with the watermark it started from, exactly as the Connector keeps it. A partition with no Value had none, so the import read every object in it. Empty for every other Activity. ImportReadRange says what the values mean. Each has PartitionId, PartitionName and Value. |
ImportPartitionWatermarksTo |
object[] |
Imports by a Connector that keeps a Delta Import watermark for each partition: every partition whose watermark the import recorded once it had staged everything it read, with the value it recorded, which that partition's next Delta Import reads changes after. A partition the import read but left out keeps the watermark it started from; one with no Value had its watermark cleared, so its next Delta Import reads every object in it. Empty when the import recorded no partition's watermark (it failed or was cancelled first, or it withheld the deletions it detected), and for every other Activity. Each has PartitionId, PartitionName and Value. |
ConfigurationChangeSynchronisations |
object[] |
Saving an import Synchronisation Rule or an Object Matching Rule makes the Connected System's next synchronisation, Delta or Full, process every object of the Connected System Object Type, because the change can alter what existing objects produce. For a configuration change Activity, one entry per Object Type it saved changes for, saying whether a synchronisation has applied them yet or the next one will. For a synchronisation run, one entry per Object Type it processed in full because of changes saved before it started, with the number of objects processed and whether it applied them. Empty for every other Activity, and for a change that needs none. Each has ConnectedSystemId, ConnectedSystemName, ConnectedSystemObjectTypeId, ObjectTypeName, ObjectCount, IsApplied, AppliedAt, AppliedByActivityId, Changes and PredictionComparison. |
With -ExecutionItems:
| Property | Type | Description |
|---|---|---|
Id |
guid |
The item's unique identifier. |
ExternalIdValue |
string |
The object's external ID: its Connected System Object's current value, or the value recorded with the item where that object no longer exists. |
DisplayName |
string |
The object's display name: its Connected System Object's current value, or the name recorded with the item where that object no longer exists. |
ConnectedSystemObjectType |
string |
The object's type: its Connected System Object's current type, or the type recorded with the item where that object no longer exists. |
ObjectChangeType |
string |
What happened to the object. One of NotSet, Added, Updated, Deleted, Projected, Joined, AttributeFlow, Disconnected, DisconnectedOutOfScope, OutOfScopeRetainJoin, DriftCorrection, Exported, Deprovisioned, NoChange, PendingExport, PendingExportConfirmed, Created or ExportScopeReview. |
ErrorType |
string |
The kind of failure; NotSet or empty when the object did not fail. One of NotSet, AmbiguousMatch, CouldNotMatchObjectType, CouldNotJoinDueToExistingJoin, DuplicateImportedAttributes, MissingExternalIdAttributeValue, UnexpectedAttribute, UnresolvedReference, UnsupportedExternalIdAttributeType, ExportNotConfirmed, ExportConfirmationFailed, CsoCreationFailed, DuplicateObject, InvalidGeneratedExternalId, UnhandledError, ExpressionEvaluationError, ExpressionMissingInput, MultiValuedToSingleValued, DeltaImportFallbackToFullImport, ImportHashVerificationFailed, ImportAttributeValueError, ConnectorConfigurationError, CouldNotExportDueToExistingConnectedSystemObject, ClassMembershipRequirementsNotMet, GeneratedValueExhausted, GeneratedValueWidthExceeded, GeneratedValueCollisionUnresolved, UniqueValueAlreadyInUse, ObjectMatchingRuleFailed, ObjectTypeChanged, PasswordRequiredToEnableAccount, AmbiguousProvisioningMatch, ScopingCriterionFailed, DatesCollapseAtTargetResolution, OutsideManagedScope, AccessDenied, RejectedByConnectedSystem, PlaceholderMemberConstraintViolation, MissingDependency, ConcurrencyConflict, CredentialAttributeNotExported, ExportRuleOverlap or ProjectionTypeConflict. |
MetaverseObjectId |
guid |
The Metaverse Object the item is about, where it records one rather than a Connected System Object (an Export Review). Empty otherwise. |
OutcomeSummary |
string |
Outcome types with counts, for example Projected:1,AttributeFlow:12,PendingExportCreated:2. Empty for an item recorded before outcomes were tracked, or when outcome tracking is disabled. |
Which of an Activity's properties are filled in depends on what it records. Schedules explains the Schedule attribution: pass ScheduleExecutionId to Get-JIMScheduleExecution -Id for the whole Schedule run. Clearing the Connector Space explains the counts of what a clear removed, and Safeguards the counts of what a Run Profile's limits withheld.
Examples¶
Get-JIMActivity -ConnectedSystem 'Contoso AD' -RunProfile 'Full Import' -Status FailedWithError
Get-JIMActivity -ScheduledOnly $true -Outcome Errors -CreatedFrom (Get-Date).AddDays(-7)
Get-JIMSchedule -Name 'Nightly Sync' | ForEach-Object { Get-JIMActivity -ScheduleId $_.Id }
Get-JIMActivity -InitiatedBy 'alice' -CreatedFrom (Get-Date).AddDays(-30)
Get-JIMActivity -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -ExecutionItems
$result = Start-JIMRunProfile -ConnectedSystemId 1 -RunProfileId 42 -Wait -PassThru
Get-JIMActivity -Id $result.ActivityId
Get-JIMActivity -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -Follow
# Polls every 5 seconds, for at most 60 polls (5 minutes)
Get-JIMActivity -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -Follow -IntervalSeconds 5 -MaxPolls 60
$result = Start-JIMRunProfile -ConnectedSystemId 1 -RunProfileId 42 -Wait -PassThru
Get-JIMActivity -Id $result.ActivityId -ExecutionItems |
Where-Object { $null -ne $_.ErrorType }
Get-JIMActivityChildren¶
Retrieves child activities spawned by a parent activity. For example, a schedule execution activity creates child activities for each individual Run Profile step within that schedule. This cmdlet is useful for drilling into multi-step operations to inspect each step independently.
The API pages its response; this cmdlet unwraps the pages and emits one object per child Activity to the pipeline.
Syntax¶
# Page (default)
Get-JIMActivityChildren -Id <guid> [-Page <int>] [-PageSize <int>]
# All
Get-JIMActivityChildren -Id <guid> -All [-Force] [-PageSize <int>]
Parameters¶
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Id |
guid |
Yes | The parent Activity. Accepts pipeline input by property name. | |
All |
switch |
Yes (All) | Returns every child Activity, fetching page after page. Stops with a warning after 1,000 pages unless -Force is given. |
|
Force |
switch |
No (All) | With -All, fetches every page however many there are, up to the API's limit of 1,000,000 rows. |
|
Page |
int |
No (Page) | 1 |
The page of child Activities to return. At least 1. |
PageSize |
int |
No | 50 |
How many child Activities per page. From 1 to 100. |
Output¶
Each child Activity's header.
Properties as under Get-JIMActivity.
Examples¶
Get-JIMActivityChildren -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Get-JIMActivityChildren -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -All
Get-JIMActivity -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" |
Get-JIMActivityChildren
Get-JIMActivity -Search "Nightly Sync Schedule" |
Select-Object -First 1 |
Get-JIMActivityChildren -All |
Format-Table TargetName, Status, Created, Executed
Get-JIMActivityChildren -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -All |
Where-Object { $_.Status -eq "FailedWithError" }
For each child's statistics, pipe the children to Get-JIMActivityStats:
Get-JIMActivityChildren -Id "a1b2c3d4-e5f6-7890-abcd-ef1234567890" -All |
ForEach-Object { Get-JIMActivityStats -Id $_.Id }
See also¶
- Activity Statistics: the cmdlet for a Run Profile execution's statistics
- Activities: what activities are, lifecycle, summary statistics, and parent/child execution model
- Execution Items: cmdlets for what happened to each object in a Run Profile execution, and what caused it
- Run Profiles: cmdlets for managing and executing synchronisation Run Profiles
- Schedules: cmdlets for managing automated Run Profile schedules