Salesforce Custom Permissions
Author
March 1, 2021
Custom permissions let you define your own permissions for use in Salesforce. In Salesforce access is defined in many ways more generally in terms of profile, role, sharing roles, permission sets, etc for different entities like Objects, fields, tabs, vf pages, Records.
But for Custom processes and apps access cannot be defined by permission sets and profiles.
Custom permissions let you define access checks that can be assigned to users via permission sets or profiles, similar to how you assign user permissions and other access permissions.
Custom permissions can be used in
- Validation Rules
- Apex
- Lightning
- Components
- In formula
fields(Automations like Workflow, Processbuilder, Flows field)
Points to Remember
- Enable Custom Permissions in Profiles
- Enable Custom Permissions in Permission Set
- Define dependencies between your Custom Permissions
- Assign Custom Permission to users
Creating Custom Permissions
- Go to Setup
- Quick find to filter to Custom Permission
- Click New
Enter a Label & Name - Click Save
Enable Custom permissions at profile
1. Go to Profiles
2. Go to Enable Custom permissions
HOW to Query Custom Permissions in Apex
Use the CustomPermission object to determine users’ access to custom permissions.
Select Id, DeveloperName from CustomPermission where DeveloperName=’Demo permission’
Where to Use Custom Permissions
Let’s imagine a scenario where you want to control your Lightning component visibility if user have specific permission set.
Steps to Achieve:
1. Create a custom Permission (named as Demo Permission)
2. Add that custom Permission to permission set
3. Assign that permission to set to user
4. In Lightning Component visibility Filter go to
Permissions—> custom Permission—–> Demo Permission
Recent Posts
-
Mirketa Unveils Next-Gen AI Solutions to Redefine the Future of Work Across Industries29 Jul 2025 Press Release
-
Salesforce Implementation School Universities Higher Education23 Jul 2025 Blog
-
Salesforce Health Cloud Implementation Partner: A Complete Guide23 Jul 2025 Blog
-
XML Parsing: Using MINIDOM Vs Element Tree (etree) in Python02 Jul 2025 Blog
-
A step by step Guide to create Salesforce web-to-lead form30 Jun 2025 Blog
-
How AI is Transforming User Experience Design in 202526 Jun 2025 Blog
-
How a Salesforce NPSP Consultant Can Elevate Nonprofit Impact25 Jun 2025 Blog
-
Salesforce Load and Performance Testing: Essentials, Importance & Execution23 Jun 2025 Blog
-
Salesforce Website Integration Boost Leads, Automation & Customer Experience11 Jun 2025 Blog
-
Driving Results in Manufacturing with Salesforce Manufacturing Cloud11 Jun 2025 Blog
Categories
Featured by



