How can I temporarily "sudo" to another user in a
2 answers
You can use the "com.ibm.team.repository.service.IImpersonationService" service:
IContributorHandle contributorH = ...
IImpersonationService impersonationService = getService(IImpersonationService.class);
impersonationService.runAs(contributorH, new IImpersonationService.ImpersonationRunnable() {
public void run() throws Exception {
// ...
}
);
Be aware of the logged-in contributor must have administrator permissions.