Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!

Show the user who last edited the asset

Avatar

Level 1

1/9/25

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):  
1 Comment

Avatar

Level 4

1/12/25

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.