It's all about the answers!

Ask a question

Get List of Users (REST ?)


Gerald Pape (8123) | asked May 07 '13, 7:53 a.m.

I need to get the list of useres enroled in RTC and place it onto an Excel table or add them to MS Project as resources.

I found https://jazzserver:9443/ccm/rpt/repository/foundation which also lists users but only 100, I have 304.

I also found https://jazzserver:9443/ccm/oslc/users which in my case only lists 50 users, but has paging available, which is no fun reading by code.

Any suggestion how I can get a complete list of users? btw. I am on RTC 3.0.1.1

Thanks!

Accepted answer


permanent link
Kot T. (1.5k11219) | answered May 08 '13, 5:46 p.m.
JAZZ DEVELOPER
If https://jazzserver:9443/ccm/rpt/repository/foundation gives the output you are looking for, you can add the 'size' to extend the # of records returned per page.

For example,
https://jazzserver/jts/rpt/repository/foundation?fields=foundation/contributor/(userId|name)&size=400
Gerald Pape selected this answer as the correct answer

3 other answers



permanent link
Eric Jodet (6.3k5111120) | answered May 07 '13, 8:38 a.m.
JAZZ DEVELOPER
 Gerald,
why don't you use the repotools -exportUsers command?
http://pic.dhe.ibm.com/infocenter/clmhelp/v3r0m1/topic/com.ibm.jazz.install.doc/topics/r_repotools_exportusers.html

Purpose

The exportUsers command can be used to export the user information into a CSV file.

Thanks.
Eric.

permanent link
Eric Jodet (6.3k5111120) | answered May 07 '13, 8:16 a.m.
JAZZ DEVELOPER
 Hello Gerald,
for Java API.

As you already found, OSLC will oblige you to use paging.
Possibly more work for you, but this could prevent performance issues (in case you had to fetch a lot o users).

Hope it helps.
Eric.

Comments
Gerald Pape commented May 07 '13, 8:22 a.m.

Hi, thanks for the hint, but I need something where I can get the data from Excel/Project, which does not provide JAVA ;-)


permanent link
Karthik Krishnan (8825117163) | answered May 07 '13, 8:17 a.m.
edited May 07 '13, 8:25 a.m.
 Sadly this (paging) is the implementation from RTC 4.0 (AFAIK) 

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.