How can I modify roles of an already existing user using Java API
![]()
Is it possible to modify roles of user who is already present in team area using Java API. How? I am successful in adding roles to users but in case user already has roles , how can I modify (refresh) them using API ?
|
One answer
![]()
Oh oh, I know this. What you have to do is get the user's current role(s), filter out the 'default' and append the new role[s].
The below method came from Ralph's 'dumpContributor' example which I shamelessly have made use of: private static IRole[] getProcessAreaRoles(ITeamRepository teamRepository, IProcessArea processArea, IContributorHandle handle) |