Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get currently logged in user

 Hi everyone, 
I'm making a java extension for my liberty server.
I want to set an attribute to the current logged in user.
I know how to set and save an attribute, but I don't know how to get the currently logged in user.
All the solutions I've found so far are eighter for javascript or for the client api.

Any advice?

Thanks

0 votes


Accepted answer

Permanent link
https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
Philipp H selected this answer as the correct answer

0 votes

Comments

Oh. Thanks!


For the lazy:
IContributorHandle loggedIn = this.getAuthenticatedContributor();

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,935
× 411

Question asked: Aug 22 '16, 3:53 a.m.

Question was seen: 2,592 times

Last updated: Aug 22 '16, 4:11 a.m.

Confirmation Cancel Confirm