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.
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
Any update on this? I'm having the same problem
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