Salesforce Developers

Thursday 4 September 2014

What are Roles in salesforce?

In Salesforce, Roles are the part of Administration Setup. Roles are defined to increase or decrease the authority of any user in terms of data visibility. The data visibility can also be managed by building role hierarchy or by using sharing rules. Defining role hierarchy permits the user at higher level to access the records owned by users at lower level in role hierarchy. It is not necessary that a user must have a role.
         Moreover, OWD are used to set the default access for objects, for example if, OWD has been set as private means that only the record owner can access the record. Additional access to the records owned by other users can be achieved by roles i.e. user with higher level in role hierarchy can access the records of the user at lower level in role hierarchy. Another way to achieve this is writing sharing rules, where we can specify the logic to which role user, which record should be shared. We can not specify this role hierarchy with standard objects as it is set by default, but we can set up this role hierarchy for any custom object. Defining role for users is not compulsory, but not defining roles may cause some problems in reports for that user.
 
 
Summarised view of above explanation:
1. It is not compulsory to define role for each and every user. 
2. We can write sharing rules to share records to a user with particular role and subordinates.
3. Roles are also helpful in Extending OWD settings.
4. Role hierarchy controls the access of record according to the user level.

No comments:

Post a Comment