Find project area/team area a certain archived user is a member of and remove that user via plain Java API
![]()
RTC v4.0.3. used.
The users deleted some users from LDAP and then archived the users in RTC via sync job. Now they need to find out a way to automatically retrieve the project areas/team areas info the archived user is member of and remove them from the PA/TA. According to some posts such as: https://jazz.net/forum/questions/108771/get-user-project-area-and-role-access-using-plain-java-api-rtc, we can print the project areas/team areas the user is a member of. Ralph Schoon's blog has the codes for that as well: https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ I have two questions here: 1) Would the codes applied to archived users as well? i.e. can they use the same code to list the project areas and team areas for which the archived user is a member of? 2) if yes, is there any Java API they can use to remove those user(s) from the project area/team area? Appreciate any inputs. |
2 answers
![]()
Ralph Schoon (62.7k●3●36●43)
| answered Mar 24 '14, 3:18 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Mar 24 '14, 3:19 a.m.
I think you should find most of the code here: https://rsjazz.wordpress.com/2012/12/09/analyzing-a-aroject-areas-members-and-roles-using-the-plain-java-client-libraries/ go to Only Analyze the Process Areas of One User as a starter.
Comments Hi, Ralph Thank you very much and yes I am referring to the codes in your blog. Can you please advise whether the code applies to the archived users or not. And if we want to remove the archived users from the project area/team area, what is the method to achieve that? Would removeLoginParticipant(ITeamRepository.ILoginParticipant participant) do the job?
Don 1
IProcessArea.removeMember
1
In this API it is always important to understand the context of what to do and where.
![]() FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Archived users: As far as I can tell, an archived user is like any other user. It is only no longer active and has no licenses. However, an archived user might still be member of project areas - I did never play with this. The Archived User has an IContributorHandle and an IContributor object as any other user. So all operations should still apply.
Thanks a lot to Ralph and Sam for the explanation and detailed method.
|