# Session

> Part of the NocoDB documentation (Workflows > Scripts > API Reference). Index of all pages: https://nocodb.com/llms.txt. Any docs page is available as Markdown by adding `.md` to its URL.

URL: https://nocodb.com/docs/workflows/scripts/api-reference/session
Last updated: 2026-10-03

The session object in NocoDB Scripts gives information about the user who runs the script.

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

```javascript
// 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

* [Base](/docs/workflows/scripts/api-reference/base)
* [Cursor](/docs/workflows/scripts/api-reference/cursor)
* [Table](/docs/workflows/scripts/api-reference/table)
* [Input](/docs/workflows/scripts/api-reference/input)

---

## Related pages

- [Base](https://nocodb.com/docs/workflows/scripts/api-reference/base.md): The base object in NocoDB Scripts gives access to the tables and collaborators of the current base.
- [Cursor](https://nocodb.com/docs/workflows/scripts/api-reference/cursor.md): The cursor object in NocoDB Scripts tells a script which base, table, view and row are active.
- [Table](https://nocodb.com/docs/workflows/scripts/api-reference/table.md): The Table object in NocoDB Scripts represents a table and gives methods to query, create, update, and delete its records.
- [View](https://nocodb.com/docs/workflows/scripts/api-reference/view.md): The View object in NocoDB Scripts represents a view of a table and lets you query its records.
- [Field](https://nocodb.com/docs/workflows/scripts/api-reference/field.md): The Field object in NocoDB Scripts gives access to the configuration of a table column, and the field types and their cell values.
- [RecordQueryResult](https://nocodb.com/docs/workflows/scripts/api-reference/record-query-result.md): The RecordQueryResult object in NocoDB Scripts holds the records from a query and supports pagination.
- [Record](https://nocodb.com/docs/workflows/scripts/api-reference/record.md): The NocoDBRecord object in NocoDB Scripts represents one table row and gives methods to read its cell values.
- [Collaborator](https://nocodb.com/docs/workflows/scripts/api-reference/collaborator.md): The Collaborator object in NocoDB Scripts holds the ID, name and email of a user who has access to a base.
