Hello Everyone,
How to get current user name in share. I have a custom java backed dashlet, and I would like get the current user name in the custom dashlet and do some query based on that and put those results in the model.
I am not sure how to get the current user name. I tried using AuthenticationUtil.getRunAsUser() and it is returning null. I also tried authenticationService .getCurrentUsername() and add the reference in my bean descriptor,, and its throwing No such bean defined exception.
Could someone please help me?
Thanks