[SalesForce] One login page to multiple Community

I'm working on reworking our entire Community Site (Napili).

Due to a complex model, we want to create 2 or 3 communities. Is there a way, to have a single login page (Visualforce Page in which we will split our users by filters). And, by their profiles or some filter, redirect our user to the community he can access.

I know that, for each community we can add a custom login page.

In a wonderful world, I would like to have a single login page with a Lightning Component, calling Apex methods & co, to redirect my user on the right community.

Schema :

----------------------------- LOGIN PAGE -------------------------

                 /                 |             \
             Community A      Community B      Community C

Best Answer

If I understand correctly, Based on what profile is logging in, you would like to offer different functionalities in different community pages.

Page variations offer this flexibility, depending on the amount of page variations you will need, rather than maintaining 3 different communities and a custom login page, you will have to maintain all the page variations that target different audiences.

You will have to determine this based on your use case and take the following into consideration:

Assigning specific audience criteria to a page variation lets you target a particular set of members. Criteria include:

  • Profile

  • Location

  • Record type

Related Topic