How can I get logged in user in "Repository Connections" in "Team Artifacts" view by API?
Alexandra Li (11●2●4)
| asked May 24 '16, 7:18 a.m.
edited May 30 '16, 8:39 a.m. by David Lafreniere (4.8k●7)
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
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
|
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.