It's all about the answers!

Ask a question

Creating project area and users programatically


Elvin Jiang (1178) | asked Apr 18 '13, 9:35 p.m.
we need to create project area via C# or java code and also create users in this way, all the paramaters are got from another platform, anyone can help? expecting your anwser

Accepted answer


permanent link
Ralph Schoon (59.4k23642) | answered Apr 19 '13, 6:00 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Apr 19 '13, 12:34 p.m.
If you want to add users with roles to a project area, the code you need is in the snippet3 of the plain Java Client Libraries. If you are not aware what that is, start here: http://rsjazz.wordpress.com/2013/02/28/setting-up-rational-team-concert-for-api-development/ then go here: http://rsjazz.wordpress.com/2013/03/20/understanding-and-using-the-rtc-java-client-api/ and look into the snippet 3.

If you want to create new users against Tomcat you can try to use

teamRepository.externalUserRegistryManager().addExternalUser(userId, password, name, emailAddress, groups, monitor)
Elvin Jiang selected this answer as the correct answer

Comments
Elvin Jiang commented Apr 21 '13, 11:24 p.m.

many thanks!!

Your answer


Register or to post your answer.