It's all about the answers!

Ask a question

how to add users and roles to Team Area using Plain Java API ?

Kaushambi Singh (371310379) | asked Jun 07 '13, 5:05 a.m.
edited Jun 20 '13, 7:29 a.m.
How can we add list of users to Team Area using Java API ? Users already exists in the repository. It just that I need to add them in Team Area and assign roles.

Kaushambi Singh commented Jun 10 '13, 7:05 a.m.

Please help with the answer.

2 answers

permanent link
Ralph Schoon (63.2k33646) | answered Jun 10 '13, 11:44 a.m.
Here is code to find process area (team/project) areas etc:

If you have the process area, here is the API to add a contributor:
processArea.addMember(contributorHandle) has other posts that describe how to get to the contributor handle from the ID.

permanent link
Jay Toogood (1) | answered Sep 08 '14, 2:54 p.m.
Hey Ralph, as near as I have been able to find adding a contributor to a Role in a Project Area cannot be done with the plain java api for 3.0.1 correct?  And is the same true for setting the license also?

Ralph Schoon commented Sep 09 '14, 1:51 a.m.

As adding members and setting roles for members in a project/team area is shown in the samples that ship with the Plain Java Client Libraries and I show it here too: this is a false assessment.

You can also set licenses, however it is a bit less straight forward and I have not done a sample. I just looked into the SDK and found where it is tested.

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.