# User element

Displays a mention of a user.

| | |
|---|---|
| **Available in** | Messages, Modals, Home tab |
| **Used in** | [Rich text section element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-section-element), [Rich text list element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-list-element), [Rich text quote element](https://workstation.repzo.com/docs/developers/block-kit/rich-text/rich-text-quote-element) |

## Fields

| Field | Type | Description | Required? |
|---|---|---|---|
| `type` | String | The type of object; in this case, `user`. | Required |
| `user_id` | String | The id of the user to mention. | Required |
| `style` | Object | An object of optional boolean properties that dictate style: `bold`, `italic`, `strike`, `highlight`, `client_highlight`, `underline` and `unlink`. | Optional |
| `from_llm` | Boolean | Whether the mention was generated by an LLM. | Optional |

> **How Repzo Chat differs from Slack**
>
> - `user_id` is a Repzo user id. The name is looked up when the message is posted and shown as an `@name` chip; someone outside the organisation, or an unknown id, shows as `@user`.
> - `style` and `from_llm` are ignored.

## Examples

### A user mention

```json
{
  "blocks": [
    {
      "type": "rich_text",
      "elements": [
        {
          "type": "rich_text_section",
          "elements": [
            {
              "type": "user",
              "user_id": "3f6c2a1e-8b4d-4c7a-9e21-5d0b7f9a1c34"
            },
            {
              "type": "text",
              "text": " was assigned the deal Orchid Dental Clinics."
            }
          ]
        }
      ]
    }
  ]
}
```

## Related

- [Rich text elements](https://workstation.repzo.com/docs/developers/block-kit/rich-text)
- [Block Kit overview](https://workstation.repzo.com/docs/developers/block-kit)
