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

How to assign licenses to users via the Plain Java API?

Distributed CLM 4.0.7 on Windows Servers.

Hi all, as part of my efforts to automate some regular manual RTC tasks, I'm building a utility to add users to teams, assign roles etc. but can't find a way to assign licenses.

Is this possible using the plain Java API?

0 votes


Accepted answer

Permanent link
 I used https://www.google.com/search?q=assign+license+java+API+site:jazz.net and found one very old answer in the first few posts. The code example is a bit stunning, as the license service seems to be handled a bit special (it seems to be unavailable as a client library and needs a special way to be loaded). Once I had the Interface name, searching for it in the SDK showed some examples how to get it, that agree with the answer in the post however.
Cliff Gardiner selected this answer as the correct answer

0 votes

Comments

 By the way, it is possible to use the repotools -createUser command to assign licenses.

Thanks Ralph, I've spent hours with Google and Jazz.net as I've worked my way through adding team areas, adding users to them and assigning roles to the users and must have missed that along the way.  I'll study that next ...

For information, I work in an environment where although I am the Jazz administrator I have no logon access to the Production servers (don't ask ...) so administration via a client interface is critical.  Repotools is not an option for me.  We are anticipating migrating to a cloud/SaaS implementation in the near future so the same consideration will apply.

You could have found most of the stuff here: https://rsjazz.wordpress.com/ I just haven't done the license upload.

My trick searchin is adding site:jazz.net at the end to search only here for API examples. Otherwise you might get too many hits. You can do that for sites you know. I did not include the link I meant https://jazz.net/forum/questions/86928/is-it-possible-to-retrieve-license-information-using-the-plain-java-api  and https://jazz.net/forum/questions/119688/license-repo-permission-information-using-rtc-plain-java-api

I agree it should be easier to find examples, but too few users publish.

Just a thought, have you treid to put a server install on your local machine (e.g. the plain zip version) and run the repotools against the company server? You provide a repo connection and I don't think it is a requirement to run the repotools on the server hardware.....


One other answer

Permanent link

 The post from BamBytes was taken down and can no longer be found. I posted a new example: https://rsjazz.wordpress.com/2017/03/29/managing-contributor-licenses-using-the-plain-java-client-libraries/ .

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,938
× 7,495

Question asked: Nov 18 '16, 4:41 a.m.

Question was seen: 2,868 times

Last updated: Mar 29 '17, 8:21 a.m.

Confirmation Cancel Confirm