It's all about the answers!

Ask a question

Add process roles to user programmatically


Naweed Jaulim (632732) | asked Mar 15 '14, 4:17 p.m.
Hi,

Is it possible to add process roles to a list of users using Java or the API?

Has anybody done anything similar? We currently maintain a lot of project areas with users connected to several jazz user groups and need a way to automatically add users than adding one at a time.

Many thanks,
Naweed


Comments
sam detweiler commented Mar 16 '14, 2:16 p.m.

Yes. Pretty easily. I am not near my system today but can post some info tomorrow.


We just wrote a utility to assign license, add them to project, and assign roles from an excel sheet feed.
We will add putting them in the right LDAP group too.
This will save hours of tedious manual work.


Naweed Jaulim commented Mar 16 '14, 4:02 p.m.

Hi Sam,

This is great news - we got the license part working so far(we are using a perl script with repotools for this.

Anything you can share is much appreciated(process roles and mapping) -;)

Regards,

Naweed

Accepted answer


permanent link
sam detweiler (12.5k6195201) | answered Mar 17 '14, 6:41 a.m.
RolePersistence.setPersistedRoleData(ITeamArea.getTeamData(), contributor, roledata);

roledata is a string of the role ID's.

and see Ralph's blog
http://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/
Naweed Jaulim selected this answer as the correct answer

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.