Skip to main content
6-Contributor
February 4, 2026
Question

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

  • February 4, 2026
  • 1 reply
  • 92 views

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

16-Pearl
February 4, 2026

Hi @SB_19451911,

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

LicenseGroupHelper.getLicenseGroupMembersCount(licenseGroup);