---
url: /process-functions/script-getuserid.md
description: Returns the identifier of the calling user.
---

# script.getUserId

Returns the identifier of the calling user.

```js
script.getUserId()
```

#### Parameters

None

#### Example

```js
let userId = script.getUserId();
```
