Developer Function: Script: $p.userId
## Overview
This explains the function to obtain the user ID of the logged-in user. Use this when you want to obtain the user ID.
## How To Use
```
$p.userId()
```
## Preparation
(1) Log in as the account administrator and create a table.
(2) Create a new "[Script](/en/manual/table-management-script)" and enter the following script content.
Check "[List](/en/manual/table-management-grid)" as the output destination and update it.
##### JavaScript
```
alert('The user ID is [' + $p.userId() + '].');
```
(3) Go to the list screen.