
## Session (extensions only)

A `Session` contains information about the user currently running the script. There is only ever
one session when a user runs a script. It can be accessed via the `session` global variable.

### currentUser

> See also: [Collaborator](/developers/scripting/api/collaborator.md)
```js
Collaborator | null
```

The user currently running the script, or `null` if the script is running in a publicly shared base.

```js
console.log(`The name of the current user is ${session.currentUser.name}.`);
```

```js
// Display the profile picture of the current user
console.log(`![${session.currentUser.name}](${session.currentUser.profilePicUrl})`);
```
