Duplicate account details are visible to user
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
learn-legacy-article-disclaimer-text
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:
- Create Minium Site
- Create 2 users with diff 2 accounts (B2B)
- Assign those users to Minium site members and Punchout roles.
- Create a custom regular role:
Punch Out Role Permission:

Custom Regular Role Permission:

- Assign both roles (Punch Out and custom regular role) to both users.
- Login User 1, User 2, and Admin User(Test) in different tabs of the same Browser.
- Impersonate both users through the Admin user and copy the doUserID from the URLs
- Navigate to the Minimum site-> Catalog through the Admin User, paste the doUserID of user1 in the URL, and add any product.
- Now, on the other duplicate tab, paste the doUserID of user2 in the URL.
- 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