How to get list of users? using Java plain API
![]()
Hi,
How can I get a list of users using the Java API?
I will be grateful for any help you can provide.
|
Accepted answer
![]()
IContributorManager icm = teamRepository.contributorManager();
List<IContributor> allContribs = icm.fetchAllContributors(monitor); System.out.println("I have " + allContribs.size() + " total users in the repository"); Returns all, including archived. You can iterate on the allContribs list and check each IContributor to see if they are archived: contributor.isArchived() (where contributor came from the loop for (IContributor contributor : allContribs)). Robert Siara selected this answer as the correct 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.