Sub topic 4
Enabling MFA for your users
This chapter assumes you can create permission sets, assign them to users, and find pages in Setup. You should also know the difference between a profile and a permission set. It covers how to turn on multi-factor authentication (MFA) for direct logins to Salesforce. Registration, single sign-on (SSO), and API logins each get their own chapter.
Where MFA is controlled
Salesforce decides whether a user must verify their identity by checking a system permission. The permission is called Multi-Factor Authentication for User Interface Logins. A user with this permission must provide a second verification method each time they log in through the browser or mobile app with a username and password.
You can grant the permission in two places:
- A permission set. This is the recommended approach. You can assign it to groups of users and remove it again without editing profiles.
- A profile. This works, but it applies to everyone on that profile, and profile changes are harder to roll back.
Salesforce enforces MFA for direct UI logins as a contractual requirement. The permission is how you apply it to each user.
Turn it on with a permission set
- In Setup, search for Permission Sets and click New.
- Name it something clear, such as
MFA Required, and save it. - Open System Permissions and click Edit.
- Select Multi-Factor Authentication for User Interface Logins and save.
- Click Manage Assignments, then Add Assignments, and select the users.
The change takes effect at each user's next login. A user who has not registered a verification method is prompted to connect one before they can continue.
Related permissions
Some other permissions look similar. Check them before you assign anything.
| Permission | What it does |
|---|---|
| Multi-Factor Authentication for User Interface Logins | Requires MFA when the user logs in through the UI |
| Multi-Factor Authentication for API Logins | Requires MFA when the user logs in through the API |
| Manage Multi-Factor Authentication in API | Lets a user manage MFA registrations through the API |
| Manage Multi-Factor Authentication in User Interface | Lets an admin or support user reset or remove another user's registered methods |
Give the last two only to administrators and support staff. They do not turn MFA on for the person who holds them.
Common errors
- Assigning the permission to the wrong set of users. Check Manage Assignments after you save. Missing a group of users leaves them logging in with a password only.
- Locking out an integration user. Integration accounts that log in through the API are not covered by the UI permission. Do not grant the API permission to them until you have tested the integration. See the API chapter for details.
- Forgetting administrators. Admins are the most valuable targets. Assign the permission to yourself first, and confirm you can log in with it before assigning anyone else.
- Expecting MFA on SSO logins. If users sign in through an identity provider, Salesforce does not always ask for a second factor. The identity provider decides. The SSO chapter explains this.
Test before you roll out
Create a permission set assignment for a small pilot group of a few users. Ask them to log in and register a method, and note any problems. Then widen the assignment. Planning the full rollout and tracking adoption is covered in a later chapter.
Exercise
A user has the "Multi-Factor Authentication for User Interface Logins" permission but has not registered a verification method. What happens at their next browser login, and why is a permission set usually better than a profile for assigning this permission?
Show answer
After the password is accepted, Salesforce prompts the user to register a verification method before granting access. A permission set is usually better because you can assign it to specific users or groups and remove it without changing the profile, which would affect everyone on that profile.