---
schema_version: "1"
id: aef7047291584674be45e5393fdd7225f9715387a1de34e50d6812ea55b11f8c
title: Set Visualforce Page Security from a Page Definition
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/pages_security_page_def.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.pages_security_page_def.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 071469625e0e85f9cbe783f4312f957441c426b1c30fc8ff5e44e9d684c324f5
description: Set Visualforce page security.
products:
  - Salesforce Platform
release: "264"
---
# Set Visualforce Page Security from a Page Definition

Set Visualforce page security.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Salesforce Classic and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: <strong>Contact Manager</strong>, <strong>Group</strong>, <strong>Professional</strong>, <strong>Enterprise</strong>, <strong>Performance</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d33236e82">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d33236e82 ">To set Visualforce page security:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d33236e82 ">
              <p>Manage Profiles and Permission Sets</p>
              <p>AND</p>
              <p style="margin-bottom:0;">Customize Application</p>
            </td>

          </tr>
        </tbody>
      </table>

1. From Setup, enter Visualforce Pages in the Quick Find box, then select **Visualforce Pages**.
2. Next to the name of the page that you want to restrict, click **Security**.
3. Select the profiles that you want to enable from the Available Profiles list and click **Add**.
4. Select the profiles that you want to disable from the Enabled Profiles list and click **Remove**.
5. Click **Save**.