How to get current Username login in session on jira 5.2?

Hi All,

In "jira 4.3" I get current username login in session with code jsp follow:

<%@page import="com.opensymphony.user.User" %>

<%

User _user=null;

String _fullName="";

if (session.getAttribute("seraph_defaultauthenticator_user")!=null){

_user=(User)session.getAttribute("seraph_defaultauthenticator_user");_fullName=_user.getFullName();

}

%>

package "com.opensymphony.user" in file: "jira-api-4.3.4.jar"

But the code jsp above is not working on jira 5.2.

System show error: not found package: com.opensymphony.user.User.

And I not find package "com.opensymphony.user" in file "jira-api-5.2.4.1.jar".

You can help me get current username login from code jsp and run on jira 5.2 ?

Thanks you very much !

3 answers

0 vote

OpenSymphony User handling was replaced with embedded crowd from Jira 4.3

I don't know if that is exposed in the session in the same way, but if it is, it would be a bit like om.atlassian.crowd.embedded.api.User

Thanks Jobin Kuruvilla and Nic Brough.

I will try with guide from you.

Thanks you very much !

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 16 hours ago in Off-topic

Get to know our Atlassian User Group Leaders from Bengaluru, India

Meet @Dinesh Dhinakaran, @Vishnu Vasudeva, @Rajeev Verma, and Jamshid Nalakath: Our extraordinary AUG leaders from Bengaluru, India. These four work together to strengthen the bonds of their local co...

113 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you