Managing user roles in project area with REST API?
Accepted answer
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-
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-
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