---
title: "UserBadgesByUsername (Discourse)"
description: "itgen_dce_userbadgesbyusername_plural"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/discourse/Discourse.Badges.UserBadgesByUsername
original: https://documentation.invantive.eu/en/datamodels/discourse/Discourse.Badges.UserBadgesByUsername
updated: 2026-11-01T16:08:49Z
license: https://documentation.invantive.eu/en/
---

# UserBadgesByUsername: Discourse itgen_dce_userbadgesbyusername_plural

`read only` `REST`

- Catalog: `Discourse`
- Schema: `Badges`
- Label: itgen_dce_userbadgesbyusername_plural

get a list of badges assigned to a user

Can only retrieve data.

## Summary

get a list of badges assigned to a user

## API Source

- Endpoint: `/user-badges/{username}.json`
- Operation: `get /user-badges/{username}.json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 243 |
| Write rows per minute | 219 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `username` | `` | [x] |  |  |

## Table Columns

The columns of the table `UserBadgesByUsername` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Discourse](/en/release-notes/drivers?driver=discourse)

### Changes of This Table, 26.0 to 27.0

<div class="rn-item" id="DCE-27.0-D013">

##### Table function Discourse.Badges.UserBadgesByUsername is removed

A statement that reads Discourse.Badges.UserBadgesByUsername fails after the upgrade. It had 1 columns. The operation is not in the updated Discourse specification, or has another name.

<div class="rn-action">

**What to Do**

Check statements, views and scripts that use it before the upgrade.

</div>

<div class="rn-chips">

- **can break a statement**
- importance 5

</div>

</div>

[All changes of the driver, 26.0 to 27.0](/en/release-notes/drivers?driver=discourse&step=26.0-to-27.0#discourse-26.0-to-27.0)

