Get Current User who invokes particular step in the workflow.

Avatar

Avatar

JJ_JayantJain

Avatar

JJ_JayantJain

JJ_JayantJain

23-08-2020

I  tried to get current user using session and authorizable. But none of them giving the current user who invokes the particular step.

Is there any other way to get the current user details ?

 

 

workflow workflow activities
View Entire Topic

Avatar

Avatar

Nupur_Jain

MVP

Avatar

Nupur_Jain

MVP

Nupur_Jain
MVP

23-08-2020

Hi @JJ_JayantJain 

 

You can use getInitiator() method of Workflow API to get the user ID of the user who started the workflow. 

 

Refer https://helpx.adobe.com/experience-manager/6-3/sites/developing/using/reference-materials/javadoc/co... API to get to know more about this particular method.

 

String getInitiator()
Returns the initiator of the Workflow instance.
Returns:
The user who initiated the Workflow.

 

Hope it helps!

Thanks!

Nupur