Session
The session object gives information about the current user, that is, the user who runs the script. Use it to get the identity and permissions of this user.
Overview
The session object is available in every NocoDB script. Use it to get the information of the current user (ID, name, email).
Properties
| Property | Type | Description |
|---|---|---|
currentUser | Collaborator | A Collaborator object for the current user who runs the script (read-only) |
Usage Examples
Getting Current User Information
// Access the current user information
const currentUser = session.currentUser;
output.markdown('# Current User Information');
output.text(`ID: ${currentUser.id}`);
output.text(`Name: ${currentUser.name || 'No name set'}`);
output.text(`Email: ${currentUser.email}`);Related
Last updated on
Latest product updates?See Changelog