Setting Visualforce Page Security from a PageDefinition
- From Setup, enter Visualforce Pages in the Quick Find box, then select Visualforce Pages.
- Next to the name of the page that you want to restrict, click Security.
- Select the profiles that you want to enable from the Available Profiles list and click Add.
- Select the profiles that you want to disable from the Enabled Profiles list and click Remove.
- Click Save.