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

Using the REST API, How would I find all RTC projects, All users on each RTC project, And all the user roles (including Admin) for each user on each RTC project

I need to get a list of all Projects, All the Users on the Each project, and all the roles of each user on that project including if they are an Administrator of the Project.

Using the REST API I can get a list of Projects, I can get a List of users, I can get a list of users on the Projects. I get a list of Roles (not including Admin), and I can get a list of roles on the Projects.

But I cannot seem to get a list of all Projects, All the Users on the Each project, and all the roles of each user on that project including if they are an Administrator of the Project via the REST API. Can anyone please assist?

I would prefer one line URI, but if it needs to be broken into multiple URI lines as long as there is a Linkage I can mash them together in another application.

Thank You Gratefully for Your Assistance...

1

0 votes


Accepted answer

Permanent link
 Hello Richard,
the following returns the Project names, the user names associated to the project area and all their roles they have in the PA.


https://host:port/ccm/rpt/repository/foundation?fields=projectArea/projectArea/(name|(roleAssignments/contributor/name)|(roleAssignments/contributorRoles/name))

Reference: https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#projectArea_type_com_ibm_team_pr

However I did not find a way to get the administrators of a PA. Maybe somebody else knows?

/Elisabeth 


Richard Kissel selected this answer as the correct answer

1 vote

Comments

Thank You Elisabeth, I appreciate your response. I am hoping that someone can point out how to get the Admin as well or even separately and then I can put them together.

I  actually found this as well, but it did not have the Admin, I should have mentioned this so I did not waste your time, but I am grateful for the confirmation...Thank You Very Much For Your Asssitance


One other answer

Permanent link

Unfortunately, You must use two separate REST API URIs

*****  One to get the Users as Pointed out by Elisabeth above, but with some modifications for other values

https://clm:9443/ccm/rpt/repository/foundation?fields=projectArea/projectArea/(classification|archived|itemId|name|(roleAssignments/contributor/name)|(roleAssignments/contributorRoles/name))&size=1000000

*****  And another to get the Admins
https://clm:9443/ccm/rpt/repository/generic?fields=generic/com.ibm.team.process.ProjectArea/(archived|itemId|name|internalAdmins/userId|internalAdmins/name|internalAdmins/emailAddress|internalAdmins/archived)&size=100000

0 votes

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
× 7,495

Question asked: Jun 13 '16, 5:30 p.m.

Question was seen: 5,151 times

Last updated: Jun 24 '16, 6:20 p.m.

Confirmation Cancel Confirm