It's all about the answers!

Ask a question

How can I get the list of users in a project area using OSLC in RTC?

Lipi Das (2612535) | asked Jul 08 '13, 4:45 a.m.
How can I get the list of users in a project area using OSLC in RTC?

6 answers

permanent link
Takehiko Amano (1.3k3741) | answered Jul 08 '13, 5:00 a.m.
edited Jul 08 '13, 5:01 a.m.
To access member info, use process RESTapi (note this is not OSLC).

For example, if you have instance, then access like

This will list all projects that you can access. Then you can find member list access URL like this.

Where _Z** is a project ID. If your project is nested, then open team area, you will find similar structures.

Hope this helps !

Kirk Woods commented Aug 21 '20, 11:22 a.m.

This only gives the list of members that are at the top project area level.  It does not list all users who have membership in the project area.  One can be a member of a team area in the project and not show up as a member of the project area. 

permanent link
Dinesh Kumar B (4.1k413) | answered Jul 08 '13, 5:06 a.m.
by users if you mean members of a specific project area, they can be reached using:

all users of the repository can be reached through:

Discovery Mechanism:

1.  Starting with CCM Root Services

2.  Find the Project Areas URL
    <jp06:projectAreas rdf:resource="https://localhost:9443/ccm/process/project-areas"/>

3.  Find members URL against specificc project areas   
        <jp06:project-area jp06:name="CustomReminderPoC">
4.  Using the jp06:members-url the list of members is reached:
    <jp06:members jp:total-members="3">

hope it helps.

permanent link
Mallikarjuna Kandala (1161021) | answered Jun 30 '15, 3:28 a.m.
Thank you Dinesh & Takehiko for very quick responses !

Yes, I mean members of a Project Area and in current situation I have been trying to list for RM Project.

I am able to see the data of members in the XML format.

Is it possible to get it in user friendly format : .xls ?

permanent link
karthik j (132) | answered Aug 21 '20, 6:24 a.m.

 is it possible to fetch users without UUID? just by giving input as project area name?

permanent link
Kirk Woods (9168) | answered Aug 21 '20, 11:40 a.m.

 I have questions about what the true question is about. Why do you want to get the list of members of the project area?  Do you also want the members of the team areas?  Do you want to know what role the users have for a given team area?  Is using a REST call the only option for getting the information or can you use the Java API?

Getting a full list of all users who have access to a project area requires traversing the team areas and getting those members also.  If you can use the Plain Java API, it can be easier to get the information and format the output to what you need.  If you have to use a REST call and don't want to traverse the team areas and/or deal with XML, you can create a server extension (using the SDK) to get all the user information in the format you desire and by project area name. How to make the REST call and it's function is up to you.
Having a server extension can be useful in that you can turn it into a query also to retrieve information about a single user (e.g. give me a list of all project and team areas with roles for a given user).  I have done this kind of interface to find and remove users who have left the company or had a role change.

permanent link
Davyd Norris (2.3k217) | answered Aug 22 '20, 12:12 a.m.
edited Aug 22 '20, 12:13 a.m.
No need for all the OSLC mucking around, you can just use the Reportable REST API:

https://<server>/ccm/rpt/repository/foundation?fields=foundation/projectArea[name='<your project area name>']/teamMembers/*

That will return the entire team member record and then you can be more specific, for instance, if you replace the '*' with '(emailAddress|name|userId)' you'll get the most useful fields

If you want all the team areas then use allTeamAreas/teamMembers/* at the end

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.