It's all about the answers!

Ask a question

API not retrieving all Access groups in RTC


Sanjeev Kulkarni (331823) | asked Dec 11 '17, 4:34 a.m.
edited Dec 11 '17, 5:57 a.m. by Ralph Schoon (63.3k33646)

Hello,

We have ~300 Access groups in RTC, I need to programmatically retrieve information of the access groups.
I am using below snippet to read all access groups but face problems,

IAccessGroup[] groups;
groups = auditableCommon.getAccessGroups(null, Integer.MAX_VALUE,
    monitor);

This call always returns me info of 250 access groups only. This is not respecting 2nd param value (Integer.MAX_VALUE) in retrieving access groups.
How can I retrieve all access groups?

Please note that pattern matching will not help as ~300 access groups have similar naming convention.

One answer



permanent link
Ralph Schoon (63.3k33646) | answered Dec 11 '17, 5:21 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I can not see any cap level.

The Ui uses:

IAccessGroupClientService service = (IAccessGroupClientService).fTeamRepository.getClientLibrary(IAccessGroupClientService.class);
elements = service.getAccessGroups(filter, monitor);

You can try to use use
com.ibm.team.process.client.IAccessGroupClientService
as well.


Comments
Ralph Schoon commented Dec 11 '17, 5:40 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Also note, you have to have to have the repository role JazzAdmin to be able to access all access groups. Otherwise you have only access to the access groups you are member of.

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.