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

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

How do I list all users with their assigned roles in the project? Im looking for a way to generate this in one report

0 votes



4 answers

Permanent link
Have you tried to use the repotools-ccm -exportUsers to export the user data?
The groups are exported also.

0 votes


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


0 votes


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

0 votes

Comments

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.

 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."

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


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

0 votes

Comments

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 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,507

Question asked: Jan 05 '16, 8:42 a.m.

Question was seen: 5,577 times

Last updated: Feb 17 '16, 9:48 p.m.

Confirmation Cancel Confirm