Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
41 views

Deploy new field and Apex class WITH USER_MODE

I'm attempting to deploy a change that adds a new Custom Field and changes Apex code to include a query of this new field using "WITH USER_MODE." The deployment fails because the test class ...
Michael Paisner's user avatar
0 votes
0 answers
23 views

What Fields Can The Automated Process User Access Using User Mode?

This is somewhat related to a past question of mine: Automated Process User and AccessLevel.UserMode - Should It Lose Access?. As per that question, when Apex executes as the Automated Process user ...
Matt Lacey's user avatar
  • 25.8k
2 votes
1 answer
470 views

SOQL query 'WITH USER_MODE' then update

I fetch ObjectA records with a SOQL query 'WITH USER_MODE'. Then I modify those records and want to update them in user mode I am not sure if the previous 'WITH USER_MODE' command is enough to prevent ...
Bob Bob's user avatar
  • 21
3 votes
1 answer
192 views

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
8 votes
3 answers
2k views

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