Is it posiible to change owner of workspace programmactically using JAVA API?
![]()
Hi team,
I have IWorkspaceConnection, i need to change the owner of this workspace to another user id and password programmactically . Is it possible to change the wospace owner. If so which Java api i need to use?.
Thanks in advance
|
Accepted answer
![]()
Ralph Schoon (61.8k●3●36●43)
| answered Sep 10 '20, 4:55 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I'd try com.ibm.team.scm.client.IWorkspaceConnection.setOwnerAndVisibility(IAuditableHandle, IReadScope, IProgressMonitor)
Jayashri shrinivas selected this answer as the correct answer
Comments Note that the password of the user has nothing to do with anything here and there is no Jazz API that could change it.
So how can I change the user with help of IAuditableHandle beacuse I only have userID
Try
IContributor searchUser = (IContributor) teamRepository.contributorManager().fetchContributorByUserId(userToSearch,monitor);
Consider studying https://rsjazz.wordpress.com/
|