15 Data Security
15 Data Security
## Reference
- [Data Security](https://trailhead.salesforce.com/trails/force_com_dev_beginner/
modules/data_security)
2. Objects
- Access to object-level data is the simplest thing to control. By setting
permissions on a particular type of object, you can prevent a group of users from
creating, viewing, editing, or deleting any records of that object.
- For example, you can use object permissions to ensure that interviewers can view
positions and job applications but not edit or delete them.
3. Fields
- You can restrict access to certain fields, even if a user has access to the
object.
- For example, you can make the salary field in a position object invisible to
interviewers but visible to hiring managers and recruiters.
4. Records
- You can allow particular users to view an object, but then restrict the
individual object records they're allowed to see.
- For example, an interviewer can see and edit her own reviews, but not the reviews
of other interviewers. You can manage record-level access in these four ways.
---
- Create User
- Deactivate a User
- Set Password Policy
- Restrict Login Access by IP Address
- Restrict Login Access by Time
---
- You can set object permissions with profiles or permission sets. A user can have
one profile and many permission sets.
- A user’s profile determines the objects they can access and the things they can
do with any object record (such as create, read, edit, or delete).
- Permission sets grant additional permissions and access settings to a user.
- Use profiles to grant the minimum permissions and settings that all users of a
particular type need. Then use permission sets to grant more permissions as needed.
The combination of profiles and permission sets gives you a great deal of
flexibility in specifying object-level access.
- Profiles usually match up with a user's job function (for example, system
administrator, recruiter, or hiring manager), but you can have profiles for
anything that makes sense for your Salesforce org. A profile can be assigned to
many users, but a user can have only one profile at a time.
- Permission sets make it easy to grant access to the various apps and custom
objects in your org, and to take away access when it’s no longer needed.
- Users can have only one profile, but they can have multiple permission sets.
- You'll be using permission sets for two general purposes: to grant access to
custom objects or apps, and to grant permissions—temporarily or long term—to
specific fields.
---
---
1. `Org-wide defaults` - specify the default level of access users have to each
other’s records.
2. `Role hierarchies` - ensure managers have access to the same records as their
subordinates. Each role in the hierarchy represents a level of data access that a
user or group of users needs.
3. `Sharing rules` - are automatic exceptions to org-wide defaults for particular
groups of users, to give them access to records they don’t own or can’t normally
see.
4. `Manual sharing` - lets record owners give read and edit permissions to users
who might not have access to the record any other way.
## Role Hierarchy
- A role hierarchy works together with sharing settings to determine the levels of
access users have to your Salesforce data. Users can access the data of all the
users directly below them in the hierarchy.