All About Permission Sets and Permission Set Group

 


What is Permission Sets?

Permission set is a way to give a user access permission to various tools and functions, Salesforce recommends permission sets as a way to manage user permissions because they do not change access settings on profiles.


What is Permission Sets Groups?

Permission set groups are collections of individual permission sets. They are a convenient way to group or bundle related permission sets, making access management easier for users who have several tasks or jobs that require different permissions at the user level.


User can have multiple Permission sets and permission set groups.


Best Practice:

  1. When possible, assign users the Minimum Access (OWD, Profile level), and then use permission sets and permission set groups to grant users only the permissions that they require.
  2. Create a muting permission set to remove permissions from a permission set group while keeping the included permission sets intact. There is no need to build almost similar permission sets with only a few permissions deleted.
  3. Use proper naming conventions to accurately identify the contents of each permission set.


Example of when you can create permission sets:


Example1: 

We want to provide delete access of lead to one user. And the profile of that user do not have the access to delete lead record.
Solution: 

Create a permission set and give the delete lead record access and assign the user to permission set. If a permission isn’t enabled in a profile but is enabled in a permission set, users with that profile and permission set have the permission.


Example2: 

If there is a task or job that only a few people should undertake, regardless of their profile, and in order to complete that work or job, users require more access than they have at the profile level.

Solution:

Create permission sets that include all of the permissions required for a specific job or task. If different user perform some of the same tasks, we can reuse those permission sets by bundling those permission sets into permission sets group. If a user has more such common tasks with other users then we can assign them multiple permission set groups.


Example3:

If job or task is short-term and after the end date crosses we need to remove the assigned user from permission set automatically.
Solution:
While managing the user assignment, we can provide the expiration date and timezone, such as 1 day, 1 week, or any other date.

Comments

Popular posts from this blog

How to Add a Dynamic Child List to Parent in Apex Class || Trigger using map

A - Z Guide to Using the Wire Decorator in LWC Salesforce

(Salesforce Apex 2024 Release) getSalesforceBaseUrl method is deprecated