How To Secure Apex Code With User Mode Database Operations

Опубликовано: 28 Февраль 2023
на канале: Technical Potpourri
1,130
14

Hello Everyone, welcome to another video. In today’s video, I will be discussing new techniques to Secure your Apex Code with User Mode Database Operations. So let’s explore this together.

We have two modes - System Mode and User Mode in Apex.
As we all know Apex code runs in System mode by default, which means it will run with higher permissions. In system mode, the class-sharing keywords control the sharing rule.

But now you can specify the user mode access for database operations. Field-level security(FLS) and object permission of the running users will be respected here and it always applies the sharing rule.

▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:01 - Introduction
0:17 - Explanation of System Mode and User Mode
0:50 - Demo
5:24 - Documentation
5:32 - Conclusion

📌 Blog - https://sudipta-deb.in/2023/03/how-to...
📌 Enforce User Mode for Database Operations - https://developer.salesforce.com/docs...
📌 Salesforce Spring 23 Release -    • Salesforce Spring 23 Release  
📌 Salesforce Spring 23 Flow Enhancements -    • Salesforce Spring 23 Flow Enhancements  
📌 External Services in Flow - HTTP Callout | Spring 23 Feature -    • External Services in Flow - HTTP Call...  
📌 Salesforce Spring '23 - Dynamic report filter that displays personalized results for each user    • Salesforce Spring '23 - Dynamic repor...  
📌 Salesforce Release Playlist -    • Salesforce Release  

#salesforce #spring23 #secure #apex #soql #usermode #systemmode #database

✨ Learn to code for free and get a developer job: https://www.sudipta-deb.in/
✨ Subscribe for new videos on technology every week: https://bit.ly/3vCQKpg

✨Connect with me
📌 Twitter:   / thesudiptadeb  
📌 Website: https://www.sudipta-deb.in/
📌 LinkedIn:   / sudiptadeb  
📌 Facebook:   / technicalpotpourri  

Credit: music from www.bensound.com
Disclaimer: All opinions are my own and this video content is not endorsed by Salesforce, Google or any other company in any way.