In Salesforce, we assign the permission set to give extra access to users. This permission set can be assigned from the permission set setup, but we can automate the process of assigning the permission set to new users using the flow in Salesforce.
In this Salesforce tutorial, we will learn how to assign permission set to the new user using Flow in Salesforce.
Assign Permission Set to the New user using Flow in Salesforce
To Assign Permission Set to the New user using Flow in Salesforce, navigate to the Setup page of Salesforce and follow the below steps.
Before this, ensure that you have created the permission set that you will assign to the user using the flow.
1. On Salesforce’s Setup page, go to the Quick Find box and search, then select Flows under Process Automation.

2. In the Flows setup window, click on the New Flow button.

3. In the New flow, select the option Record-Triggered Flow and click on the Create button.

4. In the trigger conditions, select the Object as User, then select the Configure trigger option when A record is created.
In this trigger flow, I will apply the condition that when the user is active, then the flow will trigger, and for that, we have to select the Field as IsActive, Operator as Equals, and Value as True.

5. To get the permission set for the user, add a Get Record element to the flow.
6. Enter the Label and the API Name for the get record element, then select the Object as Permission Set.
In the Condition Requirements, select the Field as Name, Operator as Equals, and Value as Name of the permission set. In this example, the value is New User Permissions.

7. Now add a Create Record element to the flow.
8. Enter the Label for the Create Record element and the API Name will auto-filled according to the entered label.
Under the heading How to set the Record Fields, select the option Use Separate Values and literal values.

9. In the section Create a Record of this Object, select the Object as Permission Set Assignment.
To create a permission set assignment, we need to add fields AssigneeId and PermissionSetId. For the AssigneId, set the value as Record > User Id, and for the permissionSetId, select the value as Id of get record element.

10. After creating the flow, save it by entering the Flow Label, and the Flow API Name will be auto-filled according to the entered flow label. At last, click on the Save button.

11. Now activate the flow, and for that, click on the Activate button.

We have created and activated the flow that will assign the selected permission set to the newly created user.
Create a new user to assign permission set
Now, we will test the flow to see if it assigns the permission set to the new user or not. To do that, navigate to the setup page and follow the below steps.
1. Go to the Quick Find box and search, then select Users.

2. In the User setup window, click on the New User button.
3. Enter the required details to create the new user and click Save.

4. As we click on the save button, the user will be created. On the user profile page, drag down to the section Permission set Assignments, and there, you will see the permission set that we have selected in the flow assigned to the new user.

In this way, we can Assign a Permission Set to the New User using flow in Salesforce by following the above steps.
Conclusion
In Salesforce CRM, automating the assignment of permission sets to new users using flow simplifies the onboarding process, which saves time and ensures consistency. With flow automation, we can efficiently manage user permissions and create a more organized Salesforce environment.
By following the above steps, you might have understood the process of assigning permission sets to new users using flow in Salesforce.
You may like to read:
- How to Assign Permission Sets to Users in Salesforce
- How to Create Custom Permission Set in Salesforce
- Two Ways to Post to Chatter Using Salesforce Flow
I am Bijay Kumar, the founder of SalesforceFAQs.com. Having over 10 years of experience working in salesforce technologies for clients across the world (Canada, Australia, United States, United Kingdom, New Zealand, etc.). I am a certified salesforce administrator and expert with experience in developing salesforce applications and projects. My goal is to make it easy for people to learn and use salesforce technologies by providing simple and easy-to-understand solutions. Check out the complete profile on About us.