Universal Containers (UC) uses a custom lightning component with an Apex class to display shipment information (custom object, private OWD). UC sales managers are complaining about two important points:
Shipment records that belong to their teams can be seen by other users.
Shipment amount should be visible only by managers, but sales reps are able to view it.
Which two features did the development team miss that is causing the problems?
Choose 2 answers.
- Use runAs in test class to enforce user permissions and field-level permissions.
- Use With Sharing keyword in Apex classes to enforce sharing rules evaluation.
- Use isSharable keyword in Apex classes to assure record visibility.
- Use isAccessible() method in Apex classes to check field accessibility
Reveal Solution Next Question