Issue
I need to record the email id of the person taking action on the tickets in our portal, as all tickets are visible to all users on the dashboard. I'm wondering how to achieve this and if the information is stored in an environment variable or something similar. I was given the idea to use the "user" object, which can be bound to {{appsmith.user.email}} to display the logged-in user's email address in a text widget. This was very helpful, and I appreciate the quick response! Can you share a reference link to their documentation on the Appsmith Context Object for future reference?
Resolution
To capture the email address of the logged-in user in Appsmith, you can use the user
object. Here's how:
- Use the
appsmith.user.email
property to get the email address of the logged-in user. - You can store it in the Appsmith store using
storeValue()
, or use it directly in widgets and APIs. For example, use{{appsmith.user.email}}
to display it in widgets or pass it in an API request.
For more information, see: