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

IContributor license assignment

Hello,
How can I assign a license programmatically to a newly created contributor?
Thank you for your help.

0 votes


Accepted answer

Permanent link

Try this...

LicenseAdminLibrary licenseAdminLibrary = new LicenseAdminLibrary(teamRepository);

licenseAdminLibrary.assignLicense(contributor, licenseId, monitor);

Ralph Schoon selected this answer as the correct answer

0 votes


One other answer

Permanent link
IContributor newContributor = IContributor.ITEM_TYPE.createItem();
//configure the new contributor
repository.contributorManager().saveContributor(newContributor, null);

See ILicenseAdminService for assigning a license.

HTH
Darin
Jazz Process Team

"marly" <marly> wrote in message
news:hen005$9si$1@localhost.localdomain...
Hello,
How can I create a contributor programmatically:
The lContributorManager doesn't have a createContributor API. I can
only get existing users via

repository.contributorManager().fetchContributorByUserId(name,
monitor)

Also how can I then assign a license programmatically to a user?

Thank you for your help.

0 votes

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
× 10,954

Question asked: Nov 26 '09, 5:25 p.m.

Question was seen: 5,042 times

Last updated: May 23 '16, 1:06 a.m.

Confirmation Cancel Confirm