Demo using Salesforce Custom Permissions to control button access using Visualforce and Apex
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
classes
customPermissions
pages
permissionsets
README.md
package.xml

README.md

Custom Permission Demo

Demo using custom perms to control button access

Install Instructions

  1. download repo as zip file (button to the right >)
  2. upload zip using workbench into org
  3. assign the CustomPermDemo permset to your user (grants access to Apex class and VF page)
  4. assign custom permission permsets to user which will grant access to 1 or both buttons

Demo Info
Navigate to page: `https://login.salesforce.com/apex/CustomPermPage`
1) buttons will only show if user has custom perms assigned
2) button will only successfully "click" if ButtonX_Click custom perm assigned