It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Retrieving the logged in user

Kinto Soft Nov 19, 2012

Hi,

How to get the current logged in user from the JIRA Java API?

Many thanks,

Pablo

1 answer

1 accepted

0 votes
Answer accepted
Andy Brook Nov 19, 2012

There are a bunch, for instance, if you are in your Action controller classes you can just use

getLoggedInUser();

Or alternatively:

ComponentAccessor.getJiraAuthenticationContext().getLoggedInUser()

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Join our webinar: “Asset Management: The Role of Context in ITSM” with Atlassian & Riada

  Hi Atlassian Community! This is Teresa from the Jira Service Desk team. On June 19th, I’ll be hosting a webinar “Asset Management: The Role of Context in ITSM” with Atlassian Partne...

152 views 2 3
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you