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

How to assign a repository permission to a contributer

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.

1

0 votes



One answer

Permanent link
 Any update on this?  I'm having the same problem

0 votes

Comments

 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.

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 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: Jul 30 '10, 6:42 a.m.

Question was seen: 4,855 times

Last updated: Jan 07 '15, 2:40 p.m.

Confirmation Cancel Confirm