It's all about the answers!

Ask a question

Managing user roles in project area with REST API?


Rophy Tsai (231017) | asked May 13 '15, 11:28 p.m.
Is it possible to manage user project area roles through REST API?

To clarify, we have an existing system which manages user and projects, and I'd like to integrate RQM projects with our existing system.

Accepted answer


permanent link
Ian Wark (79713450) | answered May 14 '15, 1:36 a.m.
You can add, modify or delete roles from a user using the REST API.
https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#Project_Areas

BTW the Java API also offers some user management possibilities:

Automate management of Rational Team Concert users
http://www.ibm.com/developerworks/rational/library/automate-management-rational-team-concert-users/index.html?ca=drs-
Rophy Tsai selected this answer as the correct answer

Comments
Ian Wark commented May 14 '15, 2:14 a.m. | edited May 14 '15, 2:16 a.m.

Here is an example of how you might update a user role using cURL:

Read this first.

Bulk Manipulation of Process Area Membership
https://jazz.net/library/article/633

Use a line something like this:
curl -D - -k -b %COOKIES% -H "Content-Type: application/xml" -X PUT --
data-binary @%POST_BODY_FILE% !SERVICE_URL!

For --data-binary, specify the XML file with the list of roles according to the format given below:
https://jazz.net/wiki/bin/view/Main/DraftTeamProcessRestApi#PUT_role_assignments_collection

In place of !SERVICE_URL! use a URL similar to the below:
https://clm.jkebanking.net:9443/ccm/process/project-areas/_8ESZ4GmYEeO5e9-b7eqV9g/members/clmadmin/role-assignments

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.