Home
IT Hub

Custom Permissions in Salesforce for Tailored Access Control

Salesforce
Reco Security Experts
Updated
August 29, 2024
August 29, 2024

Creating Custom Permissions in Salesforce for Tailored Access Control

Have you ever had to ask for permission before taking action? Or have you been restricted from doing something you love until you get permission? The general idea of permission is to consent or authorize someone to do a particular thing or carry out an action. In Salesforce, permissions are a big deal. Data protection is one of the major functions of Salesforce, and permissions must be granted to maintain data integrity.  

The above screenshot demonstrates the process of creating a custom permission in Salesforce. It shows the user navigating through the Salesforce Setup menu by typing 'Custom Permissions' in the Quick Find Box, highlighting the initial steps to access and create custom permissions.

Benefits of Custom Permissions in Salesforce

Before creating custom permissions in Salesforce, let’s look at some of the benefits of creating them.

  1. Easier Permission Management: Why manage access to individual fields or objects when you can just bundle them into a single custom permission? The point of using Salesforce is to automate and simplify administration, and creating custom bulk permissions is one of the best ways to achieve this. 
  2. Easier Integration for Validation Rules and Apex Triggers: Custom permissions in Salesforce can be referenced when creating validation rules and Apex triggers. You can curate specific business logic or rules for only users included in the custom permissions you create. This enhances workflow customization and allows for tailored access control.
  3. Tailored Access Control: This is the most obvious importance, but yes, creating custom permissions in Salesforce helps streamline the user experience. This means that users can only see and interact with features specific to their roles, a process that eliminates confusion with data.
  4. Enhanced Security: Salesforce permissions aim to improve data security. Custom permissions help secure sensitive data by ensuring that only permitted users can perform specific tasks. This adds a layer of protection, especially for critical processes.
  5. Reusability: After creating custom permissions, a user can reuse them across different profiles and permission sets. 

Creating a Custom Permission in Salesforce

1. Go to Setup and type Custom Permissions in the Quick Find box, then click “New”

The above screenshot illustrates the process of creating a custom permission in Salesforce. It guides the user through the steps of navigating to the Setup menu, typing 'Custom Permissions' in the Quick Find Box, and then selecting 'New' to begin creating a custom permission.

2. Label your permission set and type Custom Permissions in the Quick Find box, then save it. For this example, we call it “New Custom Permission”.

The above screenshot illustrates the step where you assign a name to your custom permissions in Salesforce. The image highlights the fields where users input the permission name and description, ensuring clarity and proper identification within the system.

3. Save your custom permission. 

4. Next, you have to add your custom permissions to a permission set. To do this, simply go to Setup >> Quick Find >> Permission Sets >> New.

The above screenshot shows the process of creating a permission set in Salesforce. It illustrates the user accessing the Salesforce Setup menu, typing 'Permission Sets' in the Quick Find Box, and clicking 'New' to initiate the creation of a new permission set.

5. Create a permission set. Label your permission set and save it. (Best practice is to always add a description before you save).

The above screenshot illustrates the process of labeling and saving a permission set in Salesforce. The image highlights the fields where the user enters the name, label, and description for the permission set before saving it.

6. After saving, scroll down to “Custom Permissions.”

The above screenshot illustrates the process of adding custom permissions to a permission set in Salesforce. The image shows the steps involved, including navigating to the relevant permission set and selecting the custom permissions option to configure specific access controls.

7. You will be shown a list of the custom permissions you have created. Click the “right pointing” arrow to move the custom permissions from “Available Custom Permissions” to “Enabled Custom Permissions” and save

The above screenshot illustrates the steps to enable custom permissions in Salesforce. The image highlights the interface where users can manage and activate their custom permissions within the Salesforce setup.

8. Assign your custom permission to a user by clicking “Manage Assignment.”

The above image illustrates the steps to assign custom permissions to Salesforce users. The visual guide shows the process of selecting users and assigning specific custom permissions within Salesforce, ensuring they have the appropriate access rights.

After clicking “Manage Assignments”, you will be shown a list of users. Select the users for whom you want to give the custom permissions and save. That’s all you need! The selected users now have certain permissions other users do not have!  

Conclusion 

Custom permissions are essential in Salesforce, and Salesforce administrators or users must take advantage of them to enhance tailored access, which will improve data security. As shown in this article, there are many uses of the custom permission feature, and it is advised to create them in a developer org (free) to test your understanding of the feature. You can create a developer org to test your custom permission creations here: https://developer.salesforce.com/signup

Explore More
See more articles from our Hub

Start Securing Your Entire SaaS Lifecycle

Request a demo