All Questions
5 questions
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 ...
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 ...
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 ...
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 ...
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 ...