It's all about the answers!

Ask a question

Get current logged in user in advsor


Prakash Behrani (28910) | asked Jul 28 '14, 1:30 p.m.
Could some one point me to code sample(s) that shows how to get current user in an advisor (Server side extension).

One answer



permanent link
sam detweiler (12.5k6195201) | answered Jul 28 '14, 3:01 p.m.
if your extension extends AbstractAdvisor then getAuthenticatedContributor() should do it..

in eclipse, inside the advisor, on a blank line, hit ctrl-spacebar for the content assist feature.. it will show you all the known methods available in that context.

Comments
Ralph Schoon commented Jul 29 '14, 4:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Usually a server extension needs to extend AbstractService or AbstractSCMService which provide the getAuthenticatedContributor().

Note, that gives you all the user information available in the Jazz Environment, except the password. The latter is not accessible, as far as I can tell.

Your answer


Register or 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.