cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Translate the entire conversation x

is there any api to know how how many license are left for particular license

SB_19451911
5-Regular Member

is there any api to know how how many license are left for particular license

I am trying to add user to particular license through the code. Before adding user to that license, I wanna check how many licenses are already consume (kinda validation). By knowing the number I'll come to know that whether I can add user to that license or to throw some proper message back to user.

1 REPLY 1

Hi @SB_19451911,

Use the following API to retrieve the number of users present in the license group.

LicenseGroupHelper.getLicenseGroupMembersCount(licenseGroup);

 

Announcements
Top Tags