---
url: /process-functions/script-getuserid.md
description: Returns the id of the user running the process.
---

# script.getUserId

Returns the id of the user running the process.

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

## Returns

The user's id.

## Examples

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

## Related

* [script.getUserEmail](/process-functions/script-getuseremail)
* [script.getUserName](/process-functions/script-getusername)
