How to get members in a ALM common group via RTC API or some ways else
Dear RTC team,
Currently our project integrates with ALM via RTC API (6.0.1), we have a ALM common group and would get all members in this group to provide access to our system. Question: how do we get all members in the group from its name without caring project areas? Thanks.
showing 5 of 7
show 2 more comments
|
Be the first one to answer this question!
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.
Comments
What is an ALM common group? I don't understand what concepts you are referring to and what your use case is. Please provide better details.
Hi Ralph,
Sorry if I'm not clear on my expectation. In our side there is one custom group like "xxxx_CLM_users_UP" and the membership of the group will grant you access to beeing member to lifecycle projects areas. Now we need to get all members in this group.
And one more question: Contributors I can get via RTC API are exact users who register in ALM system, right?
Sorry, you are not using terms that make sense to me. If you refer to a lifecycle project and users assigned to it, I am not sure if there is a Java API.
Each Server (RTC, JTS,...) has its own usr entries that are seeded by JTS, The user details are the same on all servers, but they are not the same objects. You can however use the RTC API against th JTS to get user data.
ok, thanks Ralph for your quick response. Please ignore my questions above.
Now I can check user by user id via
IContributor contributor = this.repo.contributorManager().fetchContributorByUserId(userId, monitor);
But the user id is case sensitive, so my concern is how to ignore case sensitive of user id during fetching contributor without changing in ADMIN as https://jazz.net/forum/questions/84934/rtc-user-id-case-sensitive-issue mentioned?
Thanks so much for your time.
ok, thanks Ralph for your quick response. Please ignore my questions above.
Now I can check user by user id via
IContributor contributor = this.repo.contributorManager().fetchContributorByUserId(userId, monitor);
But the user id is case sensitive, so my concern is how to ignore case sensitive of user id during fetching contributor?
Thanks so much for your time.
You can use contributorManager().fetchAllContributors(monitor) to get all users and iterate that.