Timeline for With USER_MODE - do we still need SOQL and DML libs?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 30, 2023 at 14:10 | comment | added | Piotr Gajek | Yes, sure @ŁukaszFranczyk, but Salesforce do not recommend it. Salesforce recommends that you enforce Field Level Security (FLS) by using WITH USER_MODE rather than WITH SECURITY-ENFORCED because of these additional advantages. More about it in: developer.salesforce.com/docs/atlas.en-us.apexcode.meta/… | |
Oct 30, 2023 at 13:36 | comment | added | Łukasz Franczyk | "Of course, it's a good practice to do it, but we do not live in a perfect world, a lot of projects have bad design. What if I would like to respect FLS, but get records without sharing to meet business requirements? WITH USER_MODE is not always a solution." - You can use WITH SECURITY_ENFORCED instead of WITH USER_MODE here to restrict only to CRUD/FLS permissions without record level security. | |
May 26, 2023 at 14:11 | history | edited | Piotr Gajek | CC BY-SA 4.0 |
added 91 characters in body
|
Apr 2, 2023 at 19:21 | vote | accept | Robert Sösemann | ||
Mar 22, 2023 at 8:48 | history | answered | Piotr Gajek | CC BY-SA 4.0 |