# User object

The following objects are directly related to the `user` API.

### User

The user object has the following properties.

|Property|Type|Description|
|--------|----|-----------|
|userid|string|*(readonly)* ID of the user.|
|**alias**<br>*(required)*|string|User alias.|
|attempt\_clock|timestamp|*(readonly)* Time of the last unsuccessful login attempt.|
|attempt\_failed|integer|*(readonly)* Recent failed login attempt count.|
|attempt\_ip|string|*(readonly)* IP address from where the last unsuccessful login attempt came from.|
|autologin|integer|Whether to enable auto-login.<br><br>Possible values:<br>0 - *(default)* auto-login disabled;<br>1 - auto-login enabled.|
|autologout|integer|User session life time in seconds. If set to 0, the session will never expire.<br><br>Default: 900.|
|lang|string|Language code of the user's language.<br><br>Default: `en_GB`.|
|name|string|Name of the user.|
|refresh|integer|Automatic refresh period in seconds.<br><br>Default: 30.|
|rows\_per\_page|integer|Amount of object rows to show per page.<br><br>Default: 50.|
|surname|string|Surname of the user.|
|theme|string|User's theme.<br><br>Possible values:<br>`default` - *(default)* system default;<br>`classic` - Classic;<br>`originalblue` - Original blue;<br>`darkblue` - Black & Blue;<br>`darkorange` - Dark orange.|
|type|integer|Type of the user.<br><br>Possible values:<br>1 - *(default)* Zabbix user;<br>2 - Zabbix admin;<br>3 - Zabbix super admin.|
|url|string|URL of the page to redirect the user to after logging in.|
