Developer Function: Script: $p.userName
## Overview
This explains the function to get the name of the logged-in user. Use this when you want to get the name of the logged-in user.
## Syntax
```
$p.userName()
```
## Usage Example
(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('Your login ID is [' + $p.userName() + '].');
```
(3) Go to the list screen.