Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
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);
