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

Add process roles to user programmatically

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

1 vote

Comments

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.

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
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

1 vote

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
× 6,126

Question asked: Mar 15 '14, 4:17 p.m.

Question was seen: 3,702 times

Last updated: Mar 17 '14, 6:41 a.m.

Confirmation Cancel Confirm