How to get User instance in JiraWebActionSupport

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2013

I want any not-logging users to be unable to get access to JiraWebActionSupport.

For that purpose, I need to get a com.atlassian.crowd.embedded.api.User instance in
JiraWebActionSupport.

What steps are needed?

1 answer

1 accepted

0 votes
Answer accepted
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2013

just use getRemoteUser()

Akira Tsuchiya
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2013

Thank you.

It worked.

The getRemoteUser() is deprecated.

So I used the getLoggedInUser() instead.

Suggest an answer

Log in or Sign up to answer