Sub topic 1
What a Salesforce user is
Prerequisites
This chapter assumes you have the following:
- Basic familiarity with the Lightning user interface and the Setup menu.
- Administrator access, or the Manage Users permission, in an org or sandbox.
- Awareness of what objects and records are in Salesforce.
No code is needed in this chapter. Later chapters use SOQL and Apex, and you can skip those sections if you only work in Setup.
The user as a record
A Salesforce user is a record on the standard User object. It has an ID, fields and a row in the database, like an Account or a Contact. Unlike most records, it also represents a person (or an integration) who can log in and act inside the org.
An org is one tenant of Salesforce with its own data, configuration and users. Every user belongs to exactly one org. The same human can have separate user records in several orgs, for example one in production and one in each sandbox.
A user record answers four questions:
- Who is this? The name, email address and username identify the person.
- Can they sign in? The Active checkbox and the username and password control this.
- What can they do? The licence, profile and permission sets control this.
- What can they see? The role, sharing settings and permissions control this.
This tutorial covers all four, in that order of dependency. The licence comes first because it limits which profiles and permissions are possible at all.
How the pieces fit together
The user is the centre. Access is built from layers around it.
The relationships to remember:
- A user has exactly one profile.
- A profile is tied to exactly one user licence. The user inherits the licence through the profile, so you do not pick a licence on the user form directly.
- A user can have any number of permission sets. A permission set can add permissions but cannot remove permissions the profile grants.
- Some permission sets require a permission set licence. The user must hold that licence before the assignment works.
- A role is optional. It affects record visibility, not what features the user can use.
The terms you will meet
| Term | What it is | Where it is covered |
|---|---|---|
| User licence | The basic type of access a user gets, such as Salesforce or Salesforce Platform. Each org buys a limited number. | Chapters on licences |
| Profile | A named set of baseline permissions and settings. Every user has one. | Chapter on profiles |
| Permission set | An additional bundle of permissions assigned on top of the profile. | Chapter on permission sets |
| Permission set licence | A licence that unlocks a specific feature set and is required by certain permission sets. | Chapter on permission set licences |
| Role | A position in the role hierarchy that opens up record visibility upward. | Chapter on roles |
What makes a user "used" or "free"
A licence is consumed by an active user. Two states matter:
- Active: the user can log in and counts against the licence total.
- Inactive: the user cannot log in and does not count against the licence total. The record still exists.
This is why capacity planning is a common admin task. If an org has 50 Salesforce licences and 50 active users on them, you cannot create or reactivate another such user until you free a licence or buy more.
You cannot delete a user. A user can own records, appear in field history, and be referenced by the created-by and last-modified-by fields on many other records. Deleting the user would break those references. Deactivating is the supported way to remove access, and a later chapter covers it in detail.
Where users live in Setup
In Lightning Experience, open Setup and enter Users in Quick Find. Under Users, the Users page lists all user records. From there you can:
- Create a new user.
- Open a user to view or edit details, reset a password, or see assigned permission sets.
- Filter views, for example to Active Users, Inactive Users or Admin Users.
- Freeze or deactivate users.
The Users list shows people who can log in to the standard org. Some other kinds of user, such as Experience Cloud (community) users, are often created from a Contact record and have their own licence types. They are still User records underneath. This tutorial focuses on internal users, meaning the employees of your company.
Kinds of user you may find
Not every user record is a person at a keyboard. When you review the Users list, expect to see:
- Standard internal users: employees using the Salesforce UI.
- Integration users: accounts that an external system uses through the API. These should have their own user, a narrow profile and permission sets, and an email address that a team monitors, not an individual.
- Automated process users: system-defined users that run certain background work, such as the Automated Process user. Do not edit or deactivate these.
- Portal and Experience Cloud users: external people with licences designed for customers or partners.
- Chatter-only or limited users: users with restricted licences, such as Chatter Free, for people who need only collaboration features.
Knowing the kind of user matters because it determines which licence and profile you choose.
Fields that identify a user
A few fields have particular rules, even before the full list of required fields in a later chapter:
- Username: must be in email address format, for example [email protected]. It must be unique across all Salesforce orgs worldwide, not only your own. It does not have to be a working email address.
- Email: where Salesforce sends the login link, notifications and password resets. It can be shared across users.
- Alias: a short label, up to eight characters, used in some list views and reports.
- Profile: the field that controls the licence.
The username rule is the cause of many failed creations. Teams often append a suffix such as .demo or the sandbox name to keep usernames unique, because sandboxes copy production users and append the sandbox name to each username.
A worked scenario
Suppose you manage an org with these facts:
- 25 Salesforce licences, 24 used.
- A profile named Standard User on the Salesforce licence.
- A new hire, Ada Lovelace, who needs to read and edit accounts and opportunities.
Reasoning through the model:
- Ada needs a user record. It will be on the User object.
- Her access starts with the licence and profile. The Standard User profile belongs to the Salesforce licence, and one is free, so she can be created.
- After creation, the org has 25 of 25 used. The next Salesforce-licence hire is blocked until you free or buy one.
- If Ada also needs a feature that the profile lacks, you add a permission set. You do not change the shared profile.
- If she needs to see her team's records, her role determines that.
This scenario uses every concept in the chapter. The chapters that follow take each step in turn.
Common misunderstandings
- "A licence is chosen on the user form." The licence follows from the profile. Choosing a profile selects a licence implicitly, and the profile list on the form is limited to profiles compatible with the user's licence.
- "Deactivating a user deletes their data." It does not. Records the user owns remain, and the owner stays visible. Only login ability and licence consumption change.
- "The username is private to my org." It is unique globally, so a short common name such as [email protected] may already be taken.
- "Roles give permissions." Roles open up record visibility. Profiles and permission sets provide permissions.
- "I can reuse one login for several people." This breaks audit trails, can violate your licence agreement, and makes access reviews meaningless. Each person gets a separate user.
Summary of the model
A user is a record. Its profile determines its licence and baseline permissions. Permission sets add to that baseline, optionally needing permission set licences. A role affects which records the user can see. Active users consume licences. Inactive users do not, and cannot be deleted.
Exercise
An org has 10 Salesforce licences and all 10 are used by active users. An admin deactivates one user, then creates a new user with the Standard User profile, which belongs to the Salesforce licence. Will the creation succeed, and why? Also, can the admin instead delete the old user to free the licence?
Show answer
The creation will succeed. Deactivating a user stops that user from counting against the licence total, so 9 of 10 are used and one is free. The admin cannot delete the old user, because user records cannot be deleted. Deactivation is the supported way to release a licence.
Exercise
A user has the Standard User profile and a permission set called Report Builder. Which of the two determines the user's licence, and how many profiles and permission sets can the user have?
Show answer
The profile determines the licence, because each profile belongs to exactly one user licence. A user has exactly one profile and can have any number of permission sets. A permission set may also require a permission set licence.