Sub topic 2
User licences: the foundation of access
This chapter assumes you can navigate Setup, know what objects and records are, and have the Manage Users permission in an org or sandbox. The optional SOQL query needs basic SOQL knowledge.
What a user licence does
A user licence is the base entitlement that decides which kind of Salesforce user a person is. It sets the outer limit of what that user can ever do. Profiles and permission sets then work inside that limit. They can narrow access or add to it, but they cannot go past what the licence allows.
Every user record has exactly one user licence. You do not pick the licence directly on the user form. You pick a profile, and each profile is tied to one licence. The user gets the licence of the profile.
Common licence types include:
| Licence | Typical use |
|---|---|
| Salesforce | Full CRM users who work with standard and custom objects |
| Salesforce Platform | Users who need custom apps and a limited set of standard objects |
| Identity | Users who only need single sign-on and identity features |
| Chatter Free and Chatter External | Collaboration-only users with no CRM access |
The exact list depends on what your company bought. Names and limits vary by edition.
Licences have a fixed count
Your contract gives the org a set number of each licence. Each active user takes one. If all licences of a type are in use, you cannot create another active user of that type until you free one or buy more.
The count includes only active users. A deactivated user does not use a licence. The deactivation chapter covers this later.
How licence, profile and permission sets fit together
The diagram shows the order of decisions. Choose the licence first, because it determines which profiles you can select. Then choose the profile. Then add permission sets for extra access.
Why the licence matters when you create a user
Three practical rules follow from this model:
- A profile's licence cannot be changed once users are assigned to the profile. To use a different licence, you need a profile that already uses it.
- A permission set can also be tied to a licence. If it is, you can only assign it to users with that licence. A permission set with no licence can go to users of any licence.
- Some permissions are not available on some licences at all. For example, a Salesforce Platform user cannot be given access to the Opportunity object by any permission set. The licence does not include it.
Seeing your licences
In Setup, search for Company Information. The User Licenses related list shows each licence type with its status, total licences, used licences and remaining licences.
You can also query the same data with SOQL, for example in the Developer Console:
SELECT Name, TotalLicenses, UsedLicenses
FROM UserLicense
ORDER BY NameEach row is one licence type in your org. Subtract UsedLicenses from TotalLicenses to see how many remain. The next chapter looks at this check in more detail.
Common mistakes
- Picking a profile by name without checking its licence. Two profiles with similar names can use different licences.
- Assuming a permission set can lift a licence limit. It cannot.
- Forgetting that frozen users still use a licence. Only deactivation releases it.
Exercise
A new colleague needs to use a custom app and read Account records, but never needs Opportunities or Leads. You select a profile and the user form saves successfully. Which setting determined the user's licence, and where would you check how many licences of that type remain?
Show answer
The licence was set by the profile you selected, because each profile belongs to one user licence. You can check remaining licences in Setup under Company Information, in the User Licenses related list, or by querying the UserLicense object and comparing TotalLicenses with UsedLicenses.