Salesforce Interview Questions & Answers Book is now available!

Grab Now

Interview questions

What is the difference between Profile and Roles?

Difference between Profiles and Roles, let me throw some light on one of the frequently asked interview questions.

By Teja, ex-Salesforce engineer · Updated April 21, 2021 · 1 min read

This is one of the most frequently asked interview questions. So let get to the bottom of it.

Profiles

These are considered as the heart of Sharing and Security. When it comes to object-level security and field-level security profiles will be used. We will be given the option to provide CRUD operations on standard and custom objects.

Roles

In Roles, we will be doing Record level sharing. When Role Hierarchy is enabled, if a record is created by a user, he will be able to access it and his reporting manager will be able to access it, also, his reporting manager will be able to access it. It goes on and on top of the pyramid.

So typically speaking Profiles are used to do Object-level security and Role are used to Record level security.

Hope this was helpful!

Learn it by building it

Every course, every code repository, the discussion group and certificates of completion — one subscription.

Keep me in the loop!

Email me when a new episode is published (promise, I will not spam you)

You're signing up to receive emails from Salesforce Casts