Getting Email id of workflow initiator

Avatar

Avatar

rohits64600205

Avatar

rohits64600205

rohits64600205

02-09-2017

Hi,

I have created a workflow in which the author_group user starts the workflow and in the next step it gets assigned to Publisher group through OOTB participant step process. Now at the end of the workflow i need to send an email to the initiator, but since the workflow session got transferred to publisher group so I am not able to get the session of initiator . Can anyone please tell how to get email id or Session of the initiator as workItem.getWorkflow().getInitiator(); only returns user id and not email id. Please note that i am using AEM 6.3.

Thanks

View Entire Topic

Avatar

Avatar

poojac35931336

Avatar

poojac35931336

poojac35931336

02-09-2017

Hi rohit,

You can Service based authentication to get the access to ResourceResolver. Please refer this article for the same.

Give this system user to read access of your author's profile. Later, you can use this resource resolver to get the email Id of them as described by Himanshu.