Reader small image

You're reading from  Salesforce for Beginners - Second Edition

Product typeBook
Published inOct 2022
PublisherPackt
ISBN-139781803239101
Edition2nd Edition
Concepts
Right arrow
Authors (2):
Sharif Shaalan
Sharif Shaalan
author image
Sharif Shaalan

Sharif Shaalan was first introduced to Salesforce as an end user in 2007. His range of experience, from a sales rep to technical architect, helped him successfully lead more than 100 implementations including projects that were showcased on the main stage at Dreamforce. In 2013, Sharif was chosen as a Salesforce MVP, and in 2020 he was inducted into the Salesforce MVP Hall of Fame. Sharif is a regular speaker at Salesforce conferences and has obtained more than 10 Salesforce certifications. He is the founder and CEO of Agile Cloud Consulting and continues to be an active Salesforce community contributor
Read more about Sharif Shaalan

Timothy Royer
Timothy Royer
author image
Timothy Royer

Timothy Royer is the VP of Delivery at Agile Cloud Consulting and a Salesforce Certified Application Architect. Timothy began his Salesforce career in 2012 as an accidental administrator and has since participated in a number of implementations in a variety of roles. Timothy has experience as a Salesforce customer, a Salesforce partner, and as a member of the Salesforce.org professional services team.
Read more about Timothy Royer

View More author details
Right arrow

User Management and Data Security

User management is a key activity for a Salesforce administrator. When a new employee joins an organization and needs access to Salesforce, the way that user is created will determine what level of data access is granted to that user.

In this chapter, we will cover the following user management features in relation to data security:

  • Creating users
  • Understanding record ownership
  • Learning how record ownership relates to data security
  • Understanding ownership skew

With the help of these topics, you will be able to create a user and learn about the implications of record ownership on data security.

Technical requirements

For this chapter, make sure you log in to your development org and follow along as we work through the creation of users and analyzing record ownership.

11 User Management and Data Security

User management is a key activity for a Salesforce administrator. When a new employee joins an organization and needs access to Salesforce the way that user is created will determine what level of data access is granted to that user.

In this chapter, we will cover the following user management and data security features in detail:

  • Creating users
  • Understanding record ownership
  • Learning how record ownership relates to data security
  • Understanding ownership skew

With the help of these topics, you will be able to create a user and learn about the implications of record ownership on data security.

Understanding record ownership

Record ownership is central to the access capabilities built into the Salesforce platform. This ownership allows you to specify which users should be able to access specific records. Every record created in Salesforce has an owner. An owner is a user in the system (such as the user we created in the previous section). At a minimum, the record owner would have access to the record they own. This access can then be expanded to other users using various sharing and visibility features that were covered in Chapter 10, An Overview of Sharing and Visibility. All organizations have some level of independent work, ad hoc collaboration, and structured collaboration. These use cases are all covered by record ownership and sharing features built into the Salesforce platform. Figure 11.5 below shows the record owner field, in this case, Account Owner. The owner field on all objects determines who the owner of the record is.

The only exception to this...

Record ownership and data security

To balance the flexibility for collaboration and the need for data security, Salesforce includes multiple features to restrict access to data. Many of these features were discussed in Chapter 10, An Overview of Sharing and Visibility, but we will summarize a few key features below:

  • Organization-wide defaults: When you set an object’s organization-wide default to Private, only the users that own records belonging to that object have access. This can be extended using the various sharing options, profile, and role settings.
  • You can configure custom objects to prevent users from automatically inheriting access to them through the role hierarchy.
  • You can prevent users from deleting records through profile settings. This may also include record owners.

All of the Salesforce Platform sharing capabilities are supported by three components of the ownership-based sharing architecture:

  • An Owner field for all...

Understanding ownership skew

When a single user owns more than 10,000 records of an object, it is called data skew. This is sometimes done when organizations want to park unused data somewhere, or want to assign a dummy user to own many records for a particular object. This practice may cause performance issues if those users are moved around the role hierarchy or if they are moved into or out of a role or group that is the source group for a sharing rule. The reason this is an issue is if a change is made to the sharing of a record, Salesforce must move a large number of entries into the sharing tables, which can take a long time and lock the records in that object. Locking the records would give other users trying to edit these affected records an error if they attempt to work with one of the records during the calculation.

There are a few ways to help remedy this issue:

  • Distribute ownership of records access to a greater number of users. This will reduce the number...

Summary

In this chapter, we learned how to create a user in Salesforce. We then discovered what record ownership is and how it relates to data security. We looked at the “under the hood” sharing components of the Salesforce platform and how these components may affect performance if ownership skew occurs. Finally, we learned how we can remedy ownership skew if it does occur.

In the next chapter, we will cover how to manage projects effectively using sandboxes and change sets.

Questions

  1. What is the Marketing User checkbox used for when creating a user?
  2. Where do you set the time zone for a user?
  3. What is the exception to every record having an owner in Salesforce?
  4. How do organization-wide defaults help to secure data?
  5. What is ownership skew?
lock icon
The rest of the chapter is locked
You have been reading a chapter from
Salesforce for Beginners - Second Edition
Published in: Oct 2022Publisher: PacktISBN-13: 9781803239101
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £13.99/month. Cancel anytime

Authors (2)

author image
Sharif Shaalan

Sharif Shaalan was first introduced to Salesforce as an end user in 2007. His range of experience, from a sales rep to technical architect, helped him successfully lead more than 100 implementations including projects that were showcased on the main stage at Dreamforce. In 2013, Sharif was chosen as a Salesforce MVP, and in 2020 he was inducted into the Salesforce MVP Hall of Fame. Sharif is a regular speaker at Salesforce conferences and has obtained more than 10 Salesforce certifications. He is the founder and CEO of Agile Cloud Consulting and continues to be an active Salesforce community contributor
Read more about Sharif Shaalan

author image
Timothy Royer

Timothy Royer is the VP of Delivery at Agile Cloud Consulting and a Salesforce Certified Application Architect. Timothy began his Salesforce career in 2012 as an accidental administrator and has since participated in a number of implementations in a variety of roles. Timothy has experience as a Salesforce customer, a Salesforce partner, and as a member of the Salesforce.org professional services team.
Read more about Timothy Royer