cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the username of currently logged in user of activiti explorer

vaibhavmaniar
Champ in-the-making
Champ in-the-making
Hi guys,

I'm in big trouble i want the currently logged in users userName to use it in my application.
Please help in finding out currently logged in user details.

*help*
6 REPLIES 6

vaibhavmaniar
Champ in-the-making
Champ in-the-making
Expliaining Further.

I am using the default login screen of activiti. I have created users in user groups.

My question is , when a user logs in, I need to capture his User Id used for login.  How do I do it?

frederikherema1
Star Contributor
Star Contributor
In java-code, you can use the org.activiti.engine.impl.identity.Authentication.getAuthenticatedUserId()

hi
i have logged  by kermit user
org.activiti.engine.impl.identity.Authentication.getAuthenticatedUserId()  return null
???
please help

jbarrez
Star Contributor
Star Contributor
Where are you calling this code?

abdou2387
Champ in-the-making
Champ in-the-making
I calling this code int activiti-explorer

chittaranjan168
Champ in-the-making
Champ in-the-making

import org.activiti.engine.impl.identity.Authentication;
Check it:  String currentLoggedUser=Authentication.getAuthenticatedUserId();