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):
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.