Get Current User's Name and Role in Customer Portal

  • 22 April 2021
  • 1 reply

Userlevel 1

I'm working on customizing the landing page in our company's Customer Portal by using a Wiki page, and I need to modify the displayed HTML elements of this page based on the current user's role, as well as write the user's name into one of the HTML elements.

What I'm trying to find is a way to make a call when the customer portal home page loads, to any already existing functions that would return the name and role of the current user, so that my javascript code can modify the HTML accordingly, or any other way to get this information and have it available in the backend when the user logs in.

I’ve found that these codes apparently return the user’s ID and Name, in some aspx files in the Acumatica source code, but I haven’t found a way to use them in the portal’s home page, if it’s possible:




Thanks in advance for your help!


Best answer by Gabriel Michaud 23 April 2021, 22:40

View original

1 reply

Userlevel 7
Badge +10

Wiki pages don’t allow for conditional logic, unfortunately. Your best bet would be to have a different set of wiki pages, and to set the default page and access rights in such a way that you deliver the content you need for these users.


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved