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
Pranshu Goyal, Director of Products at Mirekta, states: “We envision DSM to be used by every small to a medium-sized organization dealing with bad data and want to get rid of duplicates easily with no cost. We have faced issues dealing with duplicates in our organization. That inspired us to make a solution that is not only simple to use but can be used widely to make the organization’s data clean to make them more efficient and productive. We want DSM to be a solution for every organization looking for duplicate management capability better than the Salesforce out-of-the-box solution with no additional cost.”
Recent Posts
-
Salesforce Website Integration Boost Leads, Automation & Customer Experience11 Jun 2025 Blog
-
Driving Results in Manufacturing with Salesforce Manufacturing Cloud11 Jun 2025 Blog
-
Accelerating Growth with NetSuite SuiteCommerce02 Jun 2025 Blog
-
Salesforce Service Cloud Services streamlining operations29 May 2025 Blog
-
AI for Nonprofits: Mirketa & Exec Precision Webinar27 May 2025 Press Release
-
AI for Nonprofits: Use Cases, Tools & Implementation Strategies20 May 2025 Webinar
-
Javascript Frameworks for Salesforce Lightning Design System18 May 2025 Blog
-
Building a Smart Campus with Salesforce Student Information System: A Road to Smarter Education16 May 2025 Blog
-
Salesforce Nonprofit Cloud: Benefits & Consultant Role15 May 2025 Blog
-
Salesforce Consulting for Nonprofits: Maximize Impact09 May 2025 Blog
-
What to Expect from a Salesforce Admin Service Provider09 May 2025 Blog
-
Maximizing Efficiency with Salesforce Cloud Integration Services09 May 2025 Blog
-
Step-by-Step Guide to Salesforce NPSP Implementation09 May 2025 Blog
-
A Guide on How to Use Salesforce Agentforce for Manufacturing02 May 2025 E-Book
-
Choosing the Right Salesforce Integration Partner: A Complete Guide22 Apr 2025 Blog
-
Salesforce Higher Education: Transforming Modern Universities15 Apr 2025 Blog
-
AI Agents The Future of Business Applications09 Apr 2025 Blog
-
Why Purpose-Built AI Agents Are the Future of AI at Work07 Apr 2025 Blog
-
How the Atlas Reasoning Engine Powers Agentforce03 Apr 2025 Blog
-
Leveraging AI for Code Analysis, Real-Time Interaction, and AI-driven Documentation02 Apr 2025 Use-case
Categories
Featured by



