Sub topic 2
User licences: the foundation of access
This chapter assumes you can navigate Setup in Lightning Experience, know what objects and records are, and have the Manage Users permission or System Administrator access in an org or sandbox. The SOQL section needs only basic query syntax.
What a user licence is
A user licence is the base entitlement that a user record consumes. It decides which broad family of features the user can reach. Every active user holds exactly one user licence, and that licence is fixed by the user's profile.
Licences are what Salesforce sells. Your contract states how many of each type you own. Profiles, permission sets and roles are configuration that you build inside those limits. This ordering is why licence choice comes first when you plan a new user.
A licence does three things:
- It sets a ceiling on the permissions a user can ever receive. A profile or permission set cannot grant a permission that the licence does not allow.
- It determines which profiles you can pick. Each profile belongs to exactly one licence.
- It counts against your purchased capacity, which drives cost and availability.
Common user licence types
Your org may hold several types. These are the ones you will meet most often.
| Licence | Typical use | Notes |
|---|---|---|
| Salesforce | Full internal CRM users | Access to standard and custom objects, subject to profile and permission sets |
| Salesforce Platform | Users who work mainly with custom apps | Limited standard object access, lower cost than the full Salesforce licence |
| Identity | Users who only need single sign-on to connected apps | No access to CRM objects |
| Chatter Free | Internal users with Chatter only | Cannot see CRM data |
| Chatter External | Customers invited into Chatter groups | Not a full internal user |
| Customer Community and Partner Community | External users in Experience Cloud sites | Often priced per login or per member |
The exact list depends on your edition and contract. Treat the table as a map of categories, not a complete catalogue.
How a licence relates to other access settings
Think of access as layers. Each layer can narrow what the layer below it allows. A layer cannot widen past the layer above it.
The flow reads as follows:
- You choose a licence type for the person.
- You select a profile that belongs to that licence.
- You optionally add permission sets that extend access. Some permission sets require a permission set licence, covered in a later chapter.
- The user's effective access is the combination of the profile and all assigned permission sets.
Licence, profile and permission set compared
These three terms are often confused, so keep them apart.
| Concept | Question it answers | How many per user |
|---|---|---|
| User licence | What family of features may this user use? | Exactly one |
| Profile | What is this user's baseline access? | Exactly one |
| Permission set | What extra access does this user need? | Zero or many |
A user licence does not grant object permissions by itself. A user with a Salesforce licence but a profile with no object permissions can log in and see very little. The licence makes permissions possible. The profile and permission sets make them real.
Where to see your licences
In Setup, enter Company Information in Quick Find and open it. The User Licenses related list shows each licence type, its status, the total purchased, the number used and the number remaining.
You can also read the same data with SOQL. The UserLicense object stores one row per licence type in the org.
SELECT Name, TotalLicenses, UsedLicenses
FROM UserLicense
ORDER BY NameRun this in the Developer Console Query Editor or in Salesforce Inspector. Each row gives you the licence name, the total you own and how many are assigned. Subtract UsedLicenses from TotalLicenses to get the remaining count. A later chapter on checking capacity covers this in more detail, including how to read the numbers when they look wrong.
Two points about the numbers:
- Some licence types report a very large
TotalLicensesvalue because they are not capped in the same way. Do not read that as a purchased quantity. - Developer and sandbox orgs often show small licence counts that differ from production. Sandboxes receive licences according to the sandbox type and the production licences you hold.
What consumes a licence
An active user consumes one licence of the type tied to their profile. These rules matter in practice:
- Creating an active user consumes a licence immediately. If none remain, the save fails.
- Deactivating a user releases the licence. The user record stays in the org, but the licence returns to the pool.
- Reactivating a user consumes a licence again, so it can fail if capacity was used in the meantime.
- Freezing a user blocks login but does not release the licence. Freezing and deactivating are different actions.
- Changing a profile to one on a different licence moves the consumption from one licence type to another. Salesforce restricts this change on many licence types, so check before you plan a bulk change.
A worked example
Suppose your org has these rows from the UserLicense query:
| Name | TotalLicenses | UsedLicenses | Remaining |
|---|---|---|---|
| Salesforce | 50 | 48 | 2 |
| Salesforce Platform | 20 | 20 | 0 |
| Identity | 100 | 12 | 88 |
You need to create three new users:
- Two sales representatives need standard CRM access. The Salesforce licence has two seats left, so both can be created. After that, the licence is full.
- One operations coordinator works only in a custom app and would normally fit the Salesforce Platform licence. That licence has zero seats left, so creation will fail.
Your options for the coordinator are to deactivate an unused Salesforce Platform user, buy more licences, or review whether the person needs a different licence type. You can decide this before opening the New User form, which saves you from an error halfway through setup.
The lesson is that capacity planning happens before user creation. Check the licence, pick the profile that matches it, and only then fill in the form.
Edge cases and gotchas
- Profiles are locked to one licence. You cannot attach a profile to a different licence after it exists. Clone the profile under the correct licence instead, if the options allow it.
- Standard profiles differ by licence. Names such as Standard User and Read Only exist for the Salesforce licence. A Platform licence has its own standard profiles with different names, for example Standard Platform User.
- Inactive users do not count. Only active users consume licences, so a large number of old users does not reduce capacity if they are deactivated.
- Expired or trial licences. A licence with a status other than Active cannot be assigned to new users. Check the Status column in Company Information.
- Sandbox refresh behaviour. After a sandbox refresh, user records copy from production, but licence counts follow the sandbox. A copied org can show more used licences than the sandbox allows, which blocks new users until you deactivate some.
- Licences are not permissions. A common mistake is to assume a bigger licence gives more access. It only raises the ceiling.
Common errors related to licences
| Error message or symptom | Likely cause | Fix |
|---|---|---|
| License limit exceeded | No remaining seats for the profile's licence | Deactivate a user of that licence or buy more seats |
| Profile is not available in the dropdown | The licence is inactive or not in the org | Check Company Information and the licence status |
| Cannot change profile | The new profile belongs to an incompatible licence | Choose a profile on the same licence or recreate the user |
| User cannot see expected objects | The licence allows it but the profile or permission set does not | Review object permissions, not the licence |
Summary of the working model
A user holds one licence. The licence limits which profiles are valid and which permissions can ever be granted. The profile gives baseline access, and permission sets add to it. Only active users consume seats, and deactivation is the action that frees one.
Exercise
Your org has 30 Salesforce licences with 30 used, and 5 Salesforce Platform licences with 3 used. A new colleague needs access to a custom app only. Which licence would you consider first, and what query would show you the capacity?
Show answer
Consider the Salesforce Platform licence first, because it fits custom-app-only work and has 2 seats left, while the Salesforce licence is full. Run SELECT Name, TotalLicenses, UsedLicenses FROM UserLicense ORDER BY Name and subtract UsedLicenses from TotalLicenses for each row.
Exercise
A manager asks you to free a seat by freezing a user who has left the company. Will this work, and why?
Show answer
No. Freezing blocks login but the user stays active, so the licence stays consumed. You must deactivate the user to release the seat.