It's all about the answers!

Ask a question

How to get the current user's id?


Ya Bin Dang (33151) | asked Apr 08 '08, 1:33 p.m.
JAZZ DEVELOPER
When I'm working on the Team Area or other editors, how can I get the current user's id? I found that in the member list, the current user have a special icon. How can I get that information? Thanks in advance!

Yabin

2 answers



permanent link
Jared Burns (4.5k29) | answered Apr 08 '08, 2:51 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
In M6, you can right click on a project area or repository connection
(for example, in the Team Artifacts view) and choose "Open My User Editor".

In older builds, you can right click on a repository connection and
choose "Administer -> Open Users..." to open your user editor.

The editor shows the user name, user id, email address, etc.

--
Jared Burns
Jazz Process Team

dangyb wrote:
When I'm working on the Team Area or other editors, how can I get the
current user's id? I found that in the member list, the current user
have a special icon. How can I get that information? Thanks in
advance!

Yabin

permanent link
Patrick Streule (4.9k21) | answered Apr 25 '08, 4:15 a.m.
JAZZ DEVELOPER
When I'm working on the Team Area or other editors, how can I get the
current user's id? I found that in the member list, the current user
have a special icon. How can I get that information? Thanks in
advance!

If you were referring to a programmatic way:
Use ITeamRepository#loggedInContributor() on the client or
AbstractService#getAuthenticatedContributor() on the server.

Patrick
Jazz Work Item Team

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.