S-Sign Licensing (Apex)
Use Apex to read and manage S-Sign seat assignments when licensing is managed inside S-Sign.
Last updated
Was this helpful?
Was this helpful?
// Read the current seat assignments
List<Id> licensedUserIds = SSign.SSLicensesController.getSSignLicensedUsers();
// Review the result
System.debug('Licensed user IDs: ' + licensedUserIds);
System.debug('Total licensed users: ' + licensedUserIds.size());global static void removeSSignUserLicenses(List<Id> removeUserIds)// Define the users to remove
List<Id> removeUserIds = new List<Id>{
'005XXXXXXXXXXXX',
'005YYYYYYYYYYYY'
};
// Remove the seats
SSign.SSLicensesController.removeSSignUserLicenses(removeUserIds);global static void addSSignUserLicenses(List<Id> addUserIds)// Define the users to license
List<Id> addUserIds = new List<Id>{
'005XXXXXXXXXXXX',
'005YYYYYYYYYYYY'
};
// Assign the seats
SSign.SSLicensesController.addSSignUserLicenses(addUserIds);