It's all about the answers!

Ask a question

How can I get logged in user in "Repository Connections" in "Team Artifacts" view by API?


Alexandra Li (1124) | asked May 24 '16, 7:18 a.m.
edited May 30 '16, 8:39 a.m. by David Lafreniere (4.8k7)
 
I know how to use API to log in repository and get logged in user infor. But if a user has logged in RTC repository in RTC Client, how can I get the user info by API.

Accepted answer


permanent link
David Lafreniere (4.8k7) | answered May 30 '16, 8:38 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
Use the ITeamRepositoryService to get the repository you care about, or perhaps your code already has the ITeamRepository. Then you can call ITeamRepository.loggedInContributor() which will return the IContributor.
Michael Valenta selected this answer as the correct answer

One other answer



permanent link
Alexandra Li (1124) | answered May 24 '16, 9:16 p.m.
Can anyone tell me how?

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.