How to fetch all the teamareas in a repository which the user has access to?
Accepted answer
That depends on what you are really looking for, which tools, and what the real intention is, the real search criteria and the purpose. Unfortunately you fail to provide the required information.
https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ in section Only Analyze the Process Areas of One User shows how to get the process areas a user is member of (in RTC, potentially RQM, RDNG?). This however does not mean that these are the ones that the user has access to. Access permissions could grant users access to project areas and other content without being a member or restrict access to data even if the user is a member of said process area.
Different tools have different APIs (although I think the process area membership is common API across various Jazz Tools), so there might not be a universal solution, even if you can provide the requirements and there are solutions for some of the tools.
https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ in section Only Analyze the Process Areas of One User shows how to get the process areas a user is member of (in RTC, potentially RQM, RDNG?). This however does not mean that these are the ones that the user has access to. Access permissions could grant users access to project areas and other content without being a member or restrict access to data even if the user is a member of said process area.
Different tools have different APIs (although I think the process area membership is common API across various Jazz Tools), so there might not be a universal solution, even if you can provide the requirements and there are solutions for some of the tools.
Comments
Thanks Ralph. I was looking for analyzing the process areas of one user in RTC.
I got the required solution from the link you had provided.
That returns the process areas only if the user is a member.
Yes. The user however can access way more process areas, dependent on how the Access Permissions are set.