After you create a flow using Flow Builder or Visualforce, designate it as a login flow
and associate it with a user profile. When a user with an associated profile logs in, they go
through the login flow.
Required Editions
Available in: both Salesforce Classic and Lightning Experience
Available in: Essentials,
Professional, Enterprise, Performance, Unlimited,
and Developer Editions
When associating login flows with user profiles, keep these things in mind.
For flows built with Flow Builder, you must activate the flow before you can associate it with
a profile.
Don’t associate a login flow with your administrator profile until you’re sure that the
login flow works properly. Otherwise, if it fails, you can’t log in to your org.
If you created a login flow with Visualforce, make sure that the associated profile has
access to the Visualforce Page.
To associate a login flow with a user profile, take these steps.
From Setup, in the Quick Find box, enter Login, and select
Login Flows.
Click New.
Select the type of flow that you created.
If you used Flow Builder, select Flow.
If you used Visualforce, select Visualforce Page.
Enter a name for the login flow definition.
From the dropdown list of available flows, choose the login flow that you
created.
Select a user license that's associated with the profile that you want to use for this
login flow.
From the list of available profiles for this license, select the profile to associate
with this login flow.
Save your changes.
Warning When Render Flow in
Lightning Runtime is enabled, users using the login flow have access to Salesforce
functionality before they complete the flow. Unauthorized user access presents a
security risk. If you’re using the custom login flow to enforce security, we recommend
that you don't enable this setting.
After you connect the login flow to a profile, you can edit or delete it from the Login
Flows Setup page.
Did this article solve your issue?
Let us know so we can improve!
Loading
Salesforce Help | Article
Cookie Consent Manager
General Information
Required Cookies
Functional Cookies
Advertising Cookies
General Information
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.