It's all about the answers!

Ask a question

How do I list all users with their assigned roles in the project?


Glenn N (11115) | asked Jan 05 '16, 8:42 a.m.
How do I list all users with their assigned roles in the project? Im looking for a way to generate this in one report

4 answers



permanent link
Isabel Murakami (3811615) | answered Jan 05 '16, 10:50 a.m.
Have you tried to use the repotools-ccm -exportUsers to export the user data?
The groups are exported also.

permanent link
Kevin Ramer (4.5k9185200) | answered Jan 05 '16, 1:13 p.m.
The repotools only will give information about assigned licenses and the Jazz role(s) assigned, not the teams/roles for any particular user.   Ralph Schoon has a nice blog which has some examples of using the RTC Plain java api.  I've used this post to augment things I got from other places.    This will require some Java knowledge. 

It is possible to use the RTC Eclipse client to get information about a project, its teams, members and roles.   In the Team Artifacts view, right click the project name and select "Generate Runtime Report..."   That will export information that can be viewed in a browser.



permanent link
Donald Nong (14.5k614) | answered Jan 05 '16, 8:05 p.m.
Since you are talking about a "report", how can you not use the "reportable" REST API? :-)

Try this:
https://clm:9443/ccm/rpt/repository/foundation?fields=foundation/projectArea/(name|roles/name|roleAssignments/(contributor/(userId|name)|contributorRoles/name))

The field selection in the URL is a bit tricky at first glance but you will get used to it after practice.

For more details, see the wiki page https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

Comments

Donald Nong commented Jan 06 '16, 7:59 p.m.

Of course you only got project areas. The field selection should start with "foundation/projectArea", not "projectArea/ProjectArea". You can just substitute with the correct host and port in the URL that I provided.


Shaule Sachs commented Feb 17 '16, 10:28 a.m. | edited Feb 17 '16, 9:45 p.m.

 I tired https://<clm>:9443/ccm/rpt/repository/foundation?fields=foundation/projectArea/(name|roles/name|roleAssignments/(contributor/(userId|name)|contributorRoles/name))


and I get "Error 500: CRRED0108E: Illegal fields argument. foundation/projectArea/roles is not a valid field name."


Donald Nong commented Feb 17 '16, 9:47 p.m. | edited Feb 17 '16, 9:48 p.m.

What's the version of the CCM server? I tested with 5.0.2 before posting.


permanent link
Kot T. (1.5k11219) | answered Jan 06 '16, 11:24 a.m.
JAZZ DEVELOPER
Have you tried the 'Generate Runtime Report...' option in Eclipse (http://www-01.ibm.com/support/docview.wss?uid=swg21632380)? It includes a list of all members (and administrators) of the project. Member info includes User Name, User ID, and Roles.

Comments
Glenn N commented Jan 06 '16, 12:16 p.m.

I did before posting this question in the forum. I had to execute this in each project area . Im looking for a way to get this in one report across all projects

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.