AEM Assets: Capturing the initiating user for assets extracted from ZIP files
When assets are extracted from ZIP files in Adobe Experience Manager (AEM) Assets, the Created By field displays a service user, instead of the user who initiated the extraction. This article explains the reason for this behavior and provides a supported method to capture the initiating user’s identity.
Description description
Environment
Adobe Experience Manager (AEM) Assets (all versions)
Symptoms
- When uploading assets individually through the AEM Assets UI, the Created By field (
jcr:createdBy) correctly reflects the user who uploaded the asset. - When a ZIP file is uploaded and extracted using the default ZIP extraction workflow, the extracted assets have
jcr:createdByset to a service user, instead of the user who initiated the extraction.
Cause
This behavior occurs because the ZIP extraction workflow processes assets using a system service session. As a result, the jcr:createdBy property is set to the service user rather than the user who uploaded or initiated the extraction. There is no supported configuration to make jcr:createdBy automatically inherit the uploading user’s identity for extracted assets.
Resolution resolution
Follow the steps below to resolve the issue:
-
Understand that the
jcr:createdByproperty will reflect the service user for assets extracted from ZIP files using the default workflow. This is expected behavior. -
To capture the identity of the user who uploaded or initiated the extraction, implement a custom metadata property (For example:
initiatingUser) on the extracted assets. -
For AEM as a Cloud Service, use a supported post-processing or auto-start workflow to set this custom property:
-
Configure a workflow step that runs after ZIP extraction.
-
In the workflow step, retrieve the user who uploaded the ZIP file or initiated the extraction (available from the workflow payload or process arguments).
-
Write this user information to the custom metadata property (For example:
initiatingUser) on each extracted asset.
-
-
Avoid modifying the legacy DAM Update Asset workflow, as this isn’t supported in AEM as a Cloud Service.
-
Verify that the custom metadata property is correctly populated by checking the extracted assets’ metadata in AEM Assets.