# Usergroup element

Displays a mention of a user group — in Repzo, a department.

| | |
|---|---|
| **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, `usergroup`. | Required |
| `usergroup_id` | String | The id of the user group to mention. | Required |
| `style` | Object | An object of optional boolean properties that dictate style: `bold`, `italic`, `strike`, `highlight`, `client_highlight`, `underline` and `unlink`. | Optional |

> **How Repzo Chat differs from Slack**
>
> - Slack's user groups are Repzo **departments**: `usergroup_id` is a department id, and the mention shows the department's name. An id that isn't a department in the organisation shows as `@team`.
> - `style` is ignored.

## Examples

### A department mention

```json
{
  "blocks": [
    {
      "type": "rich_text",
      "elements": [
        {
          "type": "rich_text_section",
          "elements": [
            {
              "type": "usergroup",
              "usergroup_id": "c2b8e5f1-4a6d-4e9b-8f73-1d5a0c6e9b28"
            },
            {
              "type": "text",
              "text": " three tickets are close to breaching their SLA."
            }
          ]
        }
      ]
    }
  ]
}
```

## 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)
