> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/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"));
```


## Related topics

- [Get User Info](/en/api/reference/restful/agent/user_agent/get-user-info.md)
- [Get User Info List](/en/api/reference/restful/agent/user_agent/get-user-info-list.md)
- [NSUserInfo](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserInfo.md)
- [NSUserAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSUserAgent.md)
- [Get User Defined Field Info](/en/api/reference/restful/agent/userdefinedfieldinfo_agent/get-user-defined-field-info.md)
- [Resolve User From Info](/en/api/reference/restful/agent/user_agent/resolve-user-from-info.md)
