It's all about the answers!

Ask a question

Autimate Exporting user from RTC Project area with roles


Dhruva Kumar (532632) | asked Aug 12 '13, 4:48 a.m.
Hi,


Is it possible to automate/export users from project areas with roles.

At present, using "Using Generate Run Time report" able to export the users.


7 answers



permanent link
Abraham Sweiss (2.4k1131) | answered Aug 12 '13, 5:38 p.m.
edited Aug 14 '13, 7:12 p.m.
I believe you will need to create an app using the java or rest api to automate this process



permanent link
Dhruva Kumar (532632) | answered Aug 12 '13, 10:50 p.m.
Hi Abraham,


I am not able to access the link https://:/jazz/process/project-areas//roles

Please provide me instructions for the same.


Regards,
Dhruva

permanent link
Abraham Sweiss (2.4k1131) | answered Aug 13 '13, 3:16 p.m.
Here is the the relavent data from that forum post:

The best way to retrieve roles is that using process rest service, you don't need to search users, but just provide the project area or team area item id.

Here are some samples to get roles
from a project area:
https://:/jazz/process/project-areas//roles

from a team area:
https://:/jazz/process/project-areas//team-areas//roles





Comments
Clement Liu commented Aug 13 '13, 3:34 p.m.

HI @asweiss,


I used this for retrieving the roles assigned to a particular user:


If I want to retrieve for every user in the project area, how should I change the url? 

Thanks.


permanent link
Abraham Sweiss (2.4k1131) | answered Aug 13 '13, 3:21 p.m.
Here is another forum post which may be helpful
https://jazz.net/forum/questions/108771/get-user-project-area-and-role-access-using-plain-java-api-rtc


permanent link
Dhruva Kumar (532632) | answered Aug 14 '13, 5:24 a.m.
Hi ,

I will right click on RTC project area-> Genearet run time report, this will give all members with user id and role.


Is it possible to automate the above process.

permanent link
Abraham Sweiss (2.4k1131) | answered Aug 14 '13, 9:18 p.m.
If you use the following rest call, you will get the list of members in the project area
https://localhost:9443/ccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/projectAreaByUUIDWithLimitedMembers?processAreaItemId=_Ku7esLtYEeKH-7l1udLOzQ

_Ku7esLtYEeKH-7l1udLOzQ  is the itemID for the JUnit project in my test bed,  The output will look like:

and as noted above, if the goal is to automate the "Generate Run TIme report", you will need to create a custom application using either the java api or rest api.


permanent link
Dhruva Kumar (532632) | answered Aug 27 '13, 7:16 a.m.
Hi,

Thank you, I am able to export the users to csv file.

Is it possible to export authorities for each users.


Your answer


Register or to post your answer.