---
url: /statelake/scripting-reference/classes/license-class/license.userid.md
---

# License.UserId

Returns the unique **User Id** value encoded within the license.

This indicates the user account id on the **Statelake** web site.

Declaration: property UserId: string

An example follows.

```pascal
procedure OnMapEvent(var Value:Variant);
begin
 //The User ID of the license
  Value := License.UserId;
end;
```

To see what your license **UserID** is, try the following stand-alone code.

```pascal
procedure ScriptEvent(var Value:Variant);
var
  WhoMe : string;
begin
  WhoMe := License.UserId;
  LogInfo('The UserID is '+WhoMe);
  LogInfo('');
end;
```
