Accessing Role Assignments of a specific team area via REST Api
Hallo,
- Process Api https://[serverpath]/ccm/process/project-areas/[projectAreaUUID]/team-areas/[teamAreaUUID]/members/[userID]/role-assignment
- Reportable REST: https://[serverpath]/ccm/rpt/repository/foundation?fields=foundation/teamArea[itemId=%27teamAreaUUID%27]/roleAssignments[contributor/userId='userID']/(contributorRoles/id)
2 answers
Isn't /ccm/rpt/repository/foundation?fields=foundation/teamArea[itemId=%27teamAreaUUID%27]/roles just what you want? I'm not quite sure why you included contributors/users in your example.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI#teamArea_type_com_ibm_team_proce
Comments
Hello Donald. Thank you for your answer.
We do not need the information which roles are available in the context of a specific team area.
Now I understand what you try to do. So, if user Marko has Team Member role in the project area, while having Scrum Master role in a team area, you want to show him having just the Scrum Master role in the team area, just like what the Manage Team Area page shows, not effectively having both Team Member and Scrum Master roles. Correct?
What is the purpose of knowing such role assignments? In most cases, knowing the effective role(s) will be more beneficial, and your use case may be quite unique.
Due to our highly complex CLM setup and usage we need to develop our own CLM user administration tool. And this tool needs to know the exact role assignments and not the effective ones.
In that case, probably have a look at the internal API
/ccm/service/com.ibm.team.process.internal.service.web.IProcessWebUIService/teamAreaByUUIDWithLimitedMembers?processAreaItemId=<teamAreaUUID>
It is called when you open the Manage Team Area page.
Generally speaking, using internal APIs is not recommended, as they may change without notice, and you cannot get any support on them.
Hi Marko,
I'm just curious whether you got a chance to obtain what you were looking for.
And if this is the case I'm really interested to know how you performed it.
Thanks for your feedback,
Fabien
Hello Fabien,
Comments
Marko Tomljenovic
Sep 21 '17, 5:12 a.m.The problem here is that we want the roles that are explicitly assigned to the user in the given team area. But what we get is the number of roles that the user in the end has in the context of the team area.