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

How to create access groups programmatically?

  Hi Team,

Please let me know how to create access groups programmatically?

Thanks in advance.

0 votes

Comments

what is an 'access group'? I know team area and role..

Reply to: "access group are new since 6.0.1".

Technically this is inaccurate. Access Groups have been around since RTC 4.0 and could be used to customize the read access of work items. In RTC 6.0.1 however, access groups could be used to customize the read access of SCM artifacts.


Accepted answer

Permanent link

Java Client API code:

IAccessGroupClientService clientService = (IAccessGroupClientService) repo.getClientLibrary(IAccessGroupClientService.class);
IWorkItemCommon workItemCommon = (IWorkItemCommon)repo.getClientLibrary(IWorkItemCommon.class);
accessGroup = (IAccessGroup) workItemCommon.getAuditableCommon().createAuditable(IAccessGroup.ITEM_TYPE);
accessGroup.setName(strAccessGroupName);

//Add at least one IProjectArea, ITeamArea or IContributor
accessGroup.add(projectArea, ReadAccessContextType.MEMBERS);

clientService.save(accessGroup, null);

ast java selected this answer as the correct answer

0 votes

Comments

 Thanks a lot Miguel Tomico.


One other answer

Permanent link
FYI, for more info. about access groups, see Using access groups to control access to artifacts

Ken

0 votes

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
× 1,381
× 457

Question asked: Jul 25 '16, 7:55 a.m.

Question was seen: 2,713 times

Last updated: Aug 05 '16, 3:23 p.m.

Confirmation Cancel Confirm