Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Reporting all active users and Client Access Licenses a

Hi

Is it possible to report of all active users on a Jazz server and the Client Access License that is associated with each of them.

This is required for auditing of access to the server.

The server has >>1000 users on it so cutting and pasting from web pages is not a suitable solution.

A report is required that can also be kept as a artefact for project auditors so this is an essential requirement for a enterprise deployment of RTC.


Thanks

Rob

0 votes



3 answers

Permanent link
The below code shows how you can get a list of licenses assigned to each of the users in the repository. Note that the code below uses the Google Guava library so you would need to include it on your classpath.

Also note that I haven't run this so there may be errors I haven't spotted :)


ITeamRepository repository = ...
IProgressMonitor monitor = new NullProgressMonitor();
List<IContributor> contributors = repository.contributorManager().fetchAllContributors(monitor);
ILicenseAdminService licenseService = (ILicenseAdminService) ((TeamRepository)repository).getServiceInterface(ILicenseAdminService.class);
IContributorLicenseType[] licenseTypes = licenseService.getLicenseTypes();

//Create a map of license id -> license type
Map<String, IContributorLicenseType> licenses =
Maps.uniqueIndex(Iterators.forArray(licenseTypes), new Function<IContributorLicenseType, String>() {
public String apply(IContributorLicenseType licenseType) {
return licenseType.getId();
}
});

for(IContributor contributor : contributors) {
System.out.println(contributor.getName());
String[] assignedLicenseIds = licenseService.getAssignedLicenses(contributor);
for(String licenseId : assignedLicenseIds) {
IContributorLicenseType license = licenses.get(licenseId);
System.out.println(String.format("\t%s - %s", license.getProductName(), license.getName()));
}
}


Hi
Thanks for the tip. Do you know if there are any examples on how to use the POJ api ?

Thanks

Rob

You can use the repotools -exportUsers command to export a CSV file containing all users and their assigned licenses.

The only limitation is that it shows the internal license ID's rather than the display name for each license.

If you need the full license name it's possible to extract the information using the plain java API.

Hi

Is it possible to report of all active users on a Jazz server and the Client Access License that is associated with each of them.

This is required for auditing of access to the server.

The server has >>1000 users on it so cutting and pasting from web pages is not a suitable solution.

A report is required that can also be kept as a artefact for project auditors so this is an essential requirement for a enterprise deployment of RTC.


Thanks

Rob

1 vote


Permanent link
You can use the repotools -exportUsers command to export a CSV file containing all users and their assigned licenses.

The only limitation is that it shows the internal license ID's rather than the display name for each license.

If you need the full license name it's possible to extract the information using the plain java API.

Hi

Is it possible to report of all active users on a Jazz server and the Client Access License that is associated with each of them.

This is required for auditing of access to the server.

The server has >>1000 users on it so cutting and pasting from web pages is not a suitable solution.

A report is required that can also be kept as a artefact for project auditors so this is an essential requirement for a enterprise deployment of RTC.


Thanks

Rob

0 votes

Comments

 This would show all users actively having been assigned a license (including floating ones ?) which may even show departed users not yet archived: Would it show active users, as in actively using the apps within a period of time?


floatingLicenseLogFile.csv contain those infos for users with floating licenses, what's about users with either fixed licenses or token?


Permanent link
Hi
Thanks for the tip. Do you know if there are any examples on how to use the POJ api ?

Thanks

Rob

You can use the repotools -exportUsers command to export a CSV file containing all users and their assigned licenses.

The only limitation is that it shows the internal license ID's rather than the display name for each license.

If you need the full license name it's possible to extract the information using the plain java API.

Hi

Is it possible to report of all active users on a Jazz server and the Client Access License that is associated with each of them.

This is required for auditing of access to the server.

The server has >>1000 users on it so cutting and pasting from web pages is not a suitable solution.

A report is required that can also be kept as a artefact for project auditors so this is an essential requirement for a enterprise deployment of RTC.


Thanks

Rob

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

Question asked: Nov 14 '11, 7:38 p.m.

Question was seen: 4,754 times

Last updated: Oct 07 '16, 6:45 p.m.

Confirmation Cancel Confirm