---
url: /process-functions/security-currentuserid.md
description: Retrieves the Id of the current user.
---

# security.currentUserId

Retrieves the Id of the current user.

```js
let userid = security.currentUserId();
```

#### Parameters

None
