How to get user license info via OSLC / REST API ?
I am writing a user reporting tool and need to get each user's license info via the API. So far I have figured out the following:
All Users (name,ID,Modified,Archived) https://SERVER:PORT/jts/rpt/repository/foundation?fields=foundation/contributor/*/* All Users (name,ID,Modified,Photo) https://SERVER:PORT/jazz/oslc/users Neither of the lists include license info and one list has the photo but not archived info and the other has archive info but not the photo (would prefer one list that has both). I found some info on an individual user basis: (TimeZone,HoursPerDay,Allocations) https://SERVER:PORT/jazz/service/com.ibm.team.apt.internal.service.rest.IResourcePlanningRestService/workEnvironment?contributorId=UNIQUEITEMIDOFUSER Great! I can get work day and allocation info - but still no license info! How do I get the license info of users through the API? |
Be the first one to answer this question!
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.
Comments
Please, somebody? I will be happy to share this tool if someone can help me make it work! I need to get license info through the API. More specifically, I need to know who has Contributor versus Developer licenses.
Did you try
com.ibm.team.process.Role
com.ibm.team.process.RoleAssignment
How are those exposed through the API? Can you provide a complete URL?
The role information is unrelated to the license information, so obtaining information about the roles a person has been assigned in a project area does not tell you anything about any licenses they may have on that Jazz server.
Thank you, yes, I am looking for a list of users and their paid licenses, such as Developer, Contributor, Stakeholder. Being able to pull license info for an individual user is OK too. I am looking for a single REST API command, not java code for the Java API.
I am not looking for jazz roles, such as JazzUsers, JazzAdmins, JazzDWAdmins, which I can get from the tomcat-users.xml file if needed. I am also not looking for project or team roles, such as Scrum Master, Product Owner, etc.