Sub topic 2
Extending Access with Permission Sets and Groups
Assume you know the Salesforce Lightning interface and can open Setup with permission to manage users. A profile gives a user their baseline access. Permission sets add access without changing that baseline.
Permission Sets and Groups
A permission set is a reusable collection of permissions, such as access to an object, field, or system feature. Assign one to a user when their job needs more access than their profile provides.
A permission set group combines several permission sets into one assignment. Use groups for job-based access, such as Support Agent. You can mute selected permissions in a group when a role needs most, but not all, of its normal access.
Permission Set Licences and Feature Licences
Some permission sets require a permission set licence or feature licence. These licences control access to products or features that are separate from the main Salesforce user licence. Check capacity before assigning them.
SELECT MasterLabel, TotalLicenses, UsedLicenses
FROM PermissionSetLicense
ORDER BY MasterLabelIf the available count is exhausted, assigning the related permission set fails. A user can also need a compatible user licence before receiving the permission set licence.
Roles and Record Visibility
A role is different from a profile. Profiles and permission sets control what a user can do. Roles influence which records the user can see through the role hierarchy and sharing rules. Assign a role only when the user needs a position in your organisation's visibility model.
Required Fields and Username Rules
A new user needs fields such as Last Name, Alias, Email, Username, Profile, time zone, locale, email encoding, and language. A username must be globally unique across all Salesforce organisations, not merely unique in your org. Use a value such as [email protected].
Create a User in Setup
- Open Setup, search for Users, and select Users.
- Click New User.
- Enter the required fields and choose a profile compatible with the user's user licence.
- Select a role if record visibility requires one.
- Save the user.
- Open the user record and assign permission sets, permission set groups, and any available permission set licences.
The user licence comes from the selected profile, so choose the profile before troubleshooting permission-assignment errors.
Exercise
Should you give every new user the System Administrator profile and remove access with permission sets?
Show answer
No. Choose the least-privileged compatible profile, then add required access with permission sets or groups.