Loading
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Visualforce Page Security

          Visualforce Page Security

          You can specify which users can execute a particular Visualforce page based on their profile or an associated permission set.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions

          Permission for a Visualforce page is checked at the top level only. Once users can access a page, they can execute all Apex that’s associated with the page. This includes:

          • The controller for the page and any Apex classes called from the controller class.
          • Any extension classes for the page and any Apex called from an extension.
          • Any Apex classes associated with custom components within the page.
          • Any classes associated with the page through the use of apex:include or apex:composition.

          For example, if page A depends on a controller that calls an Apex class B, and a user has access only to page A but not class B, the user can still execute the code in page A. Likewise, if a Visualforce page uses a custom component with an associated controller, security is only checked for the controller associated with the page, not for the controller associated with the component.

          If users have the “Customize Application” permission, they can access all Visualforce pages in the associated organization. However, they can still have restrictions related to Apex classes. The “Customize Application” permission doesn’t allow users to ignore those restrictions in a Visualforce page unless they have Visualforce page access. Users without the “Customize Application” permission can still view Visualforce page ids and names.

          Also, to include Apex in a page, users must have the “Author Apex” permission or access to the Apex class.

          Note
          Note Organizations with Salesforce Sites or Customer Portals can enable Visualforce pages either by assigning them to user profiles or by enabling them for the entire site.
           
          Loading
          Salesforce Help | Article