> For the complete documentation index, see [llms.txt](https://help.bots.business/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.bots.business/bjs/user-functions.md).

# User functions

| Function                      | Description                                                                                                                                                                                                                                                                                                                                                                                                                     |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `User.setProp(name, value)`   | <p>Set property with name for user. Name is case sensitive. <a href="/pages/CA4h2VsH9l6J3MNHXvdW#set-property">Read more</a></p><p></p><p><code>User.setProp("city", "London")</code></p><p></p><p>You can pass type also: <code>User.setProp(name, value, type)</code></p><p>Type can be: <code>integer, float, string, text, json, datetime</code></p>                                                                        |
| `User.getProp(name)`          | <p>Read property with name. Name is case sensitive. <a href="/pages/CA4h2VsH9l6J3MNHXvdW#get-property">Read more</a></p><p></p><p><code>User.getProp("city")</code><br><br>can get property with default value for non exist property:</p><p><code>User.getProp("city", "London")</code></p><p></p><p>can get property of another bot:</p><p><code>Bot.getProp({ name: "propName", other\_bot\_id: OTHER\_BOT\_ID })</code></p> |
| `User.deleteProp(name)`       | Delete prop by name                                                                                                                                                                                                                                                                                                                                                                                                             |
| `User.addToGroup(group_name)` | <p>Add user to group with group\_name</p><p></p><p><code>User.addToGroup("guests")</code></p>                                                                                                                                                                                                                                                                                                                                   |
| `User.getGroup()`             | Get current user's group                                                                                                                                                                                                                                                                                                                                                                                                        |
| `User.removeGroup()`          | Remove user from current group                                                                                                                                                                                                                                                                                                                                                                                                  |

**Access to property** in answer:

> You can also use the properties in the command's answer. For example, you can do this with the / hello command:`Hello, <UserRole>!`

in BJS:

> And you can use it in `Bot.sendMessage("Hello, <UserRole>")`
