Universal Containers (UC) has a team that analyzes customer orders looking for fraud. This team needs access to Invoice records (Custom object, Private OWD). UC has complex rules to control users’ access. The Salesforce Architect recommended using Apex managed sharing to meet these requirements. Which two recommendations should a Salesforce Developer consider when implementing the changes? (Choose two.)
A. Use runAs system method to test different users accessing these records. Most Voted
B. Use “Without Sharing” keyword to make sure record visibility will be considered.
C. Use “With Sharing” keyword to make sure record visibility will always be considered. Most Voted
D. Use “With Sharing” keyword to enforce field-level security.
Suggest answer: AC
Reference:
No comments:
Please share to make the community better.