For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Use this class only for in-product S-Sign licensing.

If the org uses Salesforce package licensing, use Identifying S-Sign Licensing.

Controller: SSign.SSLicensesController

getSSignLicensedUsers()

Method Signature

global static List<Id> getSSignLicensedUsers()

Details

  • Input: None.

  • Output: Returns a List<Id> of Salesforce User IDs 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>): Salesforce User IDs 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

Calling this method with an empty list succeeds and makes no seat changes.

addSSignUserLicenses()

Method Signature

Details

  • Input:

    • addUserIds (List<Id>): Salesforce User IDs 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

Calling this method with an empty list succeeds and makes no seat changes.

Use this sequence for predictable seat updates:

  1. Call getSSignLicensedUsers().

  2. Compare the current set with the target set.

  3. Build separate toAdd and toRemove lists.

  4. Apply only the delta.

  5. Re-run getSSignLicensedUsers() to verify the result.

Build the add and remove lists first.

This keeps updates easy to validate.

Best practices

  • Capture the current seat state before updates.

  • Calculate deltas instead of sending raw lists.

  • Validate Salesforce User ID format first.

  • Remove duplicates before each method call.

  • Use try/catch inside larger automation.

  • Verify the final state after changes.

Last updated

Was this helpful?