Legacy Knowledge Base
Published Jun. 30, 2025

Duplicate account details are visible to user

Written By

Apsara Raheja

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

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

Issue

  • The admin user needs to place an order on behalf of B2C and B2B customers who have different accounts.
  • While impersonating users simultaneously in the same browser, duplicate account details are visible.
  • Steps to reproduce:
    1. Create Minium Site
    2. Create 2 users with diff 2 accounts (B2B)
    3. Assign those users to Minium site members and Punchout roles.
    4. Create a custom regular role:
         Punch Out Role Permission:

      Custom Regular Role Permission:

    5. Assign both roles (Punch Out and custom regular role) to both users.
    6. Login User 1, User 2, and Admin User(Test) in different tabs of the same Browser.
    7. Impersonate both users through the Admin user and copy the doUserID from the URLs
    8. Navigate to the Minimum site-> Catalog through the Admin User, paste the doUserID of          user1 in the URL, and add any product.
    9. Now, on the other duplicate tab, paste the doUserID of user2 in the URL.
    10. Now, compare that the IDs of both the accounts are the same and product details are duplicated.
  • Expected Behaviour: IDs should not be the same and product details should not be getting replicated.
  • Observed Behaviour: The IDs of both accounts are the same and product details are duplicated.

Environment

  • Liferay DXP 2024 Q1.1
  • Commerce 4.0

Resolution

  • A browser session is designed for one user at a time which means logging in as multiple users simultaneously is not recommended.
  • This behavior is inherent to browser functionality rather than a Liferay-specific issue and it is just a fundamental behavior of how browsers usually work and how Liferay has interacted with this fundamental behavior.
  • If an admin user needs to place various orders, visit the appropriate storefront, switch accounts, and use the account selectors to place the orders on the user's behalf.
Did this article resolve your issue ?

Legacy Knowledge Base