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:createdBy set 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:

  1. Understand that the jcr:createdBy property will reflect the service user for assets extracted from ZIP files using the default workflow. This is expected behavior.

  2. 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.

  3. 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.

  4. Avoid modifying the legacy DAM Update Asset workflow, as this isn’t supported in AEM as a Cloud Service.

  5. Verify that the custom metadata property is correctly populated by checking the extracted assets’ metadata in AEM Assets.

recommendation-more-help
experience-cloud-kcs-help-kbarticles