No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
Class Security
You can specify which users can execute methods in a particular top-level class based on their user profile or permission sets. You can only set security on Apex classes, not on triggers.
To set Apex class security from the class list page:
- From Setup, click .
- Next to the name of the class that you want to restrict, click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from the class detail page:
- From Setup, click .
- Click the name of the class that you want to restrict.
- Click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add, or select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.
To set Apex class security from a permission set:
- From Setup, click .
- Select a permission set.
- Click Apex Class Access.
- 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.
To set Apex class security from a profile:
- From Setup, click .
- Select a profile.
- 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.