openblocks-dev / openblocks

🔥 🔥 🔥 The Open Source Retool Alternative
https://cloud.openblocks.dev
GNU Affero General Public License v3.0
5.8k stars 349 forks source link

How to retrieve the user ID of the currently logged-in user? #380

Closed biankasyo closed 1 year ago

biankasyo commented 1 year ago

I have a management system where users can update information. However, I need to record the user who created or updated the information. I want to ask how to retrieve the user ID of the currently logged-in user.

I've checked the wiki, but I couldn't find any relevant information on how to implement this. Can anyone help me with this issue?

Thank you!

mingfang commented 1 year ago

{{currentUser.id}}

biankasyo commented 1 year ago

{{currentUser.id}}

Thank you!