It's all about the answers!

Ask a question

How to assign a repository permission to a contributer


0
1
Sandra Hoffmann (2577) | asked Jul 30 '10, 6:42 a.m.
Hallo,

I created a contributer like that:


contributerToAdd = (IContributor) IContributor.ITEM_TYPE.createItem();
contributerToAdd.setName(AddUserName);
contributerToAdd.setEmailAddress(AddUserEmailAddress);
contributerToAdd.setUserId(AddUserUserId);
repository.contributorManager().saveContributor(contributerToAdd, null);

Can somebody please tell me, how I can assign a repository permission e.g. JazzUsers.

One answer



permanent link
joe meagher (6612) | answered Jan 06 '15, 6:28 p.m.
 Any update on this?  I'm having the same problem

Comments
joe meagher commented Jan 07 '15, 12:18 p.m.

 FYI, solved it using http://www.joshuabambrick.com/assign-repository-permissions-rtc/


Had to create user using IContributor, then ALSO create IExternalUser using API described in above link (addExternalUser, not addUserToGroup).  part of the external user contains the "Group" which is JazzAdmins, JazzUsers, etc.


Kevin Ramer commented Jan 07 '15, 2:40 p.m.

If your external registry is not writeable ( e.g. not under direct management by Tomcat or a WebSphere domain ) it is necessary to use other means of adding the user association to the Jazz role mappings

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.