How to know which user is running the workflow for a page?
I am not able to fetch the user name, like who is running the workflow for a particular page. The issue is
1. Since workflow uses admin session, session.getUserId() always returns "admin".
2. Payload's cq:lastModifiedBy property is also not changing because the payload is locked during the workflow, and doesn't let non-admins write to its jcr:content
Is there any other way to know which user is running the workflow ??