Get List of Users (REST ?)
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
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
For example,
https://jazzserver/jts/rpt/repository/foundation?fields=foundation/contributor/(userId|name)&size=400
3 other answers
Hello Gerald,
you may refer to https://jazz.net/forum/questions/97125/how-to-get-list-of-users-using-java-plain-api
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.
Sadly this (paging) is the implementation from RTC 4.0 (AFAIK)
You can see my post about this https://jazz.net/forum/questions/83257/how-do-i-disable-oslc-paging-in-rtc-40