Set Apex Class Access from Profiles

Specify which methods in a top-level Apex class are executable for a profile.

Required Editions

Available in: Salesforce Classic and Lightning Experience
Available in: Performance, Unlimited, Developer, Enterprise, and Database.com Editions
User Permissions Needed
To edit profiles: Manage Profiles and Permission Sets

These settings apply only to Apex class methods. For example, apply the settings to Web service methods or any method used in a custom Visualforce controller or controller extension applied to a Visualforce page. Triggers always fire on trigger events (such as insert or update), regardless of profile settings.

  1. From Setup, enter Profiles in the Quick Find box, then select Profiles.
  2. Select a profile, and click its name.
  3. In the Apex Class Access page or related list, click Edit.
  4. 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.
  5. Click Save.