Legacy Knowledge Base
Published Jul. 2, 2025

How to register the same user using email id in other sites as well

Written By

Thanga Meena

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

Issue

  • Use case: Creating multiple sites in a single instance of the portal. User1 is registered using the same email id on SiteA and SiteB. If User1 is logged in on SiteA and he/she should not able to open the SiteB without login again in SiteB.

Environment

  • Liferay DXP 7.2

Resolution

  • Firstly, When User1 is logged in to the site, both sites will be visible to User1 as email addresses are reserved for the user at instance level rather than at site level. The same applied to User2.
    • This is the default behavior of Liferay how it designed with single portal instance. The reported requirement may be achieved with custom development. As per Liferay's terminology, the site is a collection of the pages which can be associated with different users on any single portal instance.
    • The user will have access to all the sites they are associated with. Liferay allows you to create multiple Portal Instances within single Liferay server deployment.
  • Secondly, If you are planning to achieve the reported requirement through different portal instance, then yes, this is possible as there will be using the feature of multitenancy [ie. through different portal instances]. Data for each portal instance are kept separate from every other portal instance.
  • Example test case which may help to achieve the desired outcome. 
    • Navigate to Control panel/ Configuration/ Virtual instances and Create 2 portal instances
    • Virtual instance:
    • Virtual instances:
      • Create another user using the same email id test1@liferay.com in another virtual instance [risingfish.com:8080]
        • Observed behavior: Able to create a user using the same email id.
      • Hit this instance URL [risingfish.com:8080] and log in using the created user test1@liferay.com
      • Observed behavior: Able to log in using the user1 credential test1@liferay.com
    • Test result: Similar to the reported use case is possible using multiple portal instances.

Additional Information

  • In addition to this, all the data within the database is coupled to a portal instance-id i.e. Company Id. And the data is not shared across the Company ids or portal instance. Hence, you can have a user with the same credentials only once for different portal instances. For example: if there are 5 portal instances and the use case says that test1@liferay.com should be allowed to log in on each portal instance. One can create the user for all the portal instances separately as each user would be copied with a unique Company Id.
  • Users and OrganizationsUser GroupsUser Group Sites
Did this article resolve your issue ?

Legacy Knowledge Base