Configuring SDK for Authenticated vs. Unauthenticated Users
Last updated
Was this helpful?
This guide explains how the S-Docs SDK works for both authenticated (logged-in) and unauthenticated (guest) users context, and how to configure each properly in your Salesforce Site/ Community/ Experience Cloud.
Authenticated User
Community or Internal or Integration users
User generating
S-Docs license + permission sets
Unauthenticated User
Experience Cloud (guest user)
System mode
System Mode enabled
Authenticated users are logged into Salesforce, such as internal, partner, or community users. The SDK runs under their permissions and licenses.
Unauthenticated users are not logged in (guest users). For these users, S-Docs supports System Mode, allowing document generation without a user session.
Follow these steps to enable the Generate Documents LWC for guest user generation:
Note:
The System Mode setting appears in all contexts but is only executed in Experience Cloud (guest) environments.
Running system mode within an internal org context will result in a generation failure.
Error Occurred: An Apex error occurred: SDOC.Exceptions.GenerationException: Insert failed. First exception on row 0; first error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary.: [NetworkId]
Last updated
Was this helpful?
Was this helpful?

