Set Apex Class Access from Profiles
- From Setup, enter Profiles in the Quick Find box, then select Profiles.
- Select a profile and click its name.
- In the Apex Class Access page or related list, click Edit.
- Select the Apex classes that you want to enable from the Available Apex Classes list and click Add. Or select the Apex classes that you want to disable from the Enabled Apex Classes list and click Remove.
- Click Save.