This chapter covers security and sharing for Apex. You’ll learn about the security of running code and how to add user permissions for Apex classes. Also, you’ll learn how sharing rules can be enforced. Furthermore, Apex managed sharing is described. Finally, security tips are provided.