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

Managing user roles in project area with REST API?

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.

0 votes


Accepted answer

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

0 votes

Comments

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 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
× 10,951

Question asked: May 13 '15, 11:28 p.m.

Question was seen: 3,079 times

Last updated: May 14 '15, 2:16 a.m.

Confirmation Cancel Confirm