Show the user who last edited the asset | Community
Skip to main content
January 10, 2025
Investigating

Show the user who last edited the asset

  • January 10, 2025
  • 2 replies
  • 309 views
Request for Feature Enhancement (RFE) Summary: Currently we are unable to see the user who last modified the asset. There should be field where the user who last modified the asset should be captured.
Use-case:  
Current/Experienced Behavior: Unable to see the user who last modified the asset. Some hard coded value like "dam-workflow-service" is seen for now.
Improved/Expected Behavior: Instead of "dam-workflow-service" username or user email who last modified the asset should be there.
Environment Details (AEM version/service pack, any other specifics if applicable): Prod/Stg/Dev
Customer-name/Organization name: Signify
Screenshot (if applicable):  
Code package (if applicable):  

2 replies

Uppari_Ramesh
Level 5
January 12, 2025

Hi @nidhi26 ,

 

The reason why you are getting hard coded value "dam-workflow-service" is this is the service user which is responsible for doing modifications on asset and save the changes to repository.

To get your original name on asset, what you need to do is, you need to get the session from current logged in user instead of "dam-workflow-service" service user. 

1. If workflow is triggering from a servlet, you can get the session from request and you can use that session for saving the changes.

2. If workflow triggered manually/launchers then you need get the session from WorkflowSession object.

 

kautuk_sahni
Community Manager
Community Manager
February 14, 2025

@nidhi26 

Thanks for proposing this idea.
This has been reported to the engineering under the internal reference ASSETS-47547. The product team will triage this request to verify feasibility based on the prioritization model. This post will be updated according to Jira's status.
Kautuk Sahni