# 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-09-25

Documentation for the Session object in NocoDB Scripts

The `session` object provides information about the current user who is executing the script. It allows you to access contextual information about the user's identity and permissions.

## Overview

The `session` object is available in every NocoDB script and provides a way to:

* Access the current user's information (ID, name, email)

## Properties

| Property      | Type           | Description                                                                        |
| ------------- | -------------- | ---------------------------------------------------------------------------------- |
| `currentUser` | `Collaborator` | A Collaborator object representing the current user running 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): Documentation for the base object in NocoDB Scripts
- [Cursor](https://nocodb.com/docs/workflows/scripts/api-reference/cursor.md): Documentation for the Cursor object in NocoDB Scripts
- [Table](https://nocodb.com/docs/workflows/scripts/api-reference/table.md): Documentation for the Table object in NocoDB Scripts
- [View](https://nocodb.com/docs/workflows/scripts/api-reference/view.md): Documentation for the View object in NocoDB Scripts
- [Field](https://nocodb.com/docs/workflows/scripts/api-reference/field.md): Documentation for the Field object and Field Types in NocoDB Scripts
- [RecordQueryResult](https://nocodb.com/docs/workflows/scripts/api-reference/record-query-result.md): Documentation for the RecordQueryResult object in NocoDB Scripts
- [Record](https://nocodb.com/docs/workflows/scripts/api-reference/record.md): Documentation for the NocoDBRecord object in NocoDB Scripts
- [Collaborator](https://nocodb.com/docs/workflows/scripts/api-reference/collaborator.md): Documentation for the Collaborator object in NocoDB Scripts
