Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes


Accepted answer

Permanent link

I'd try com.ibm.team.scm.client.IWorkspaceConnection.setOwnerAndVisibility(IAuditableHandle, IReadScope, IProgressMonitor)

Jayashri shrinivas selected this answer as the correct answer

0 votes

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/

Your answer

Register or log in to post your answer.

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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 7,485
× 1,698
× 1,314
× 155

Question asked: Sep 10 '20, 2:44 a.m.

Question was seen: 1,005 times

Last updated: Sep 10 '20, 7:30 a.m.

Confirmation Cancel Confirm