> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get user info

> How to get user information with CRMScript.

## Bool load(Integer id)

Brings up the user with the given ID. This is always the 1st step when you want to do anything with an existing user.

```crmscript theme={null}
User u;
u.load(9);
```

## Bool loadFromAgentAndKey(Integer id, String Key)

Brings up the user that is owned by the agent and matches the external key.

<Warning>
  `loadFromAgentAndKey()` might overwrite existing values!
</Warning>

## String getValue(String colName)

Fetches the value from a named field. Look up names in the reference section down below.

```crmscript! theme={null}
User u;
u.load(8);
printLine(u.getValue("firstname"));
```
