Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

API not retrieving all Access groups in RTC

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.

0 votes



One answer

Permanent link

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.

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,938

Question asked: Dec 11 '17, 4:34 a.m.

Question was seen: 1,495 times

Last updated: Dec 11 '17, 5:57 a.m.

Confirmation Cancel Confirm