S-Sign Licensing (Apex)
Use Apex to read and manage S-Sign seat assignments when licensing is managed inside S-Sign.
S-Sign Licensing (Apex)
Use these Apex methods to read and manage S-Sign seat assignments when S-Sign manages licensing.
Controller: SSign.SSLicensesController
getSSignLicensedUsers()
Method Signature
global static List<Id> getSSignLicensedUsers()Details
Input: None.
Output: Returns a
List<Id>of SalesforceUserIDs with active S-Sign seats.
Use Cases
Use this method when you need to:
Audit current seat assignments.
Check whether a user holds a seat.
Capture a baseline before updates.
Example
removeSSignUserLicenses()
Method Signature
Details
Input:
removeUserIds(List<Id>): SalesforceUserIDs to remove from S-Sign licensing.
Output: Returns
void.
Use Cases
Use this method when you need to:
Reclaim unused seats.
Remove access during offboarding.
Sync seat removals from automation.
Example
addSSignUserLicenses()
Method Signature
Details
Input:
addUserIds(List<Id>): SalesforceUserIDs to grant an S-Sign seat.
Output: Returns
void.
Use Cases
Use this method when you need to:
Assign seats to new users.
Restore access for returning users.
Apply seat changes from admin workflows.
Example
Recommended workflow
Use this sequence for predictable seat updates:
Call
getSSignLicensedUsers().Compare the current set with the target set.
Build separate
toAddandtoRemovelists.Apply only the delta.
Re-run
getSSignLicensedUsers()to verify the result.
Best practices
Capture the current seat state before updates.
Calculate deltas instead of sending raw lists.
Validate Salesforce
UserID format first.Remove duplicates before each method call.
Use
try/catchinside larger automation.Verify the final state after changes.
Last updated
Was this helpful?

