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.
Hi @SB_19451911,
Use the following API to retrieve the number of users present in the license group.
LicenseGroupHelper.getLicenseGroupMembersCount(licenseGroup);
