Questions tagged [user-mode]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
0 answers

Automated Process User and AccessLevel.UserMode - Should It Lose Access?

Has anyone tried using the new user-level access DML operations with the automated process user, say in a platform event trigger? It seems as though calling Database.insert(records, AccessLevel....
Matt Lacey's user avatar
  • 25.4k
5 votes
1 answer

Executing SOQL with User Mode and then DML with user Mode causing Exception

I couldn't find if SOQL and DML become interlinked when using WITH USER_MODE with SOQL and DML both in single transaction. I've below sample code to be triggered on a button from an LWC: @AuraEnabled ...
VarunC's user avatar
  • 5,900
3 votes
1 answer

Enforce User Mode in Dynamic SOQL - String or Parameter?

Is it equally appropriate and safe to use each of those Dynamic SOQL calls with USER MODE or should I prepare one over the other? The official documentation doesn't make that clear. User Mode as part ...
Robert Sösemann's user avatar
3 votes
1 answer

Is the User Mode approach to object and field security acceptable in a security review?

This Enforce User Mode for Database Operations looks by far the cleanest approach to implement the object and field-level security that is required to pass a Salesforce AppExchange Security Review. (...
Keith C's user avatar
  • 135k
6 votes
3 answers

With USER_MODE - do we still need SOQL and DML libs?

As the Security model of Apex was leaky in the past, everybody who took - or as AppExchange Partners had to take - Security seriously was building or using libraries to enforce CRUD/FLS rules. The ...
Robert Sösemann's user avatar