I found a workaround solution because I don’t think its possible through the Grist plugin api to get the user directly.
To get the user name and user email from a custom widget:
- Add a trigger formula to a column
user.Nameoruser.Email(apply to new records) - use the plugin api to create a new record in that table onload
- then read the row to get the values