#1MinuteTip Came across this tweet on user Mode Database Operations in Salesforce Apex presented in TrailblazerDX 2022 (#TDX22).
Now there is a new way to enforce user level security in your Apex code with syntax like:
INSERT AS USER new Account(Name = 'GenWatt Throwback') ;
Account a = [SELECT Id, Name FROM Account
WHERE Support__c = 'Premier' WITH USER_MODE] ;
a.Rating = 'Hot' ;
UPDATE AS SYSTEM a
You can view/download the full presentation from this URL.