# Verberg de gebruikersnamen die een specifieke badge hebben

**URL:** https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318
**Category:** Support
**Created:** [7 februari 2023 om 09:49 UTC](https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318 "2023-02-07T09:49:27Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [9 februari 2023 om 16:59 UTC](https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318/11 "2023-02-09T16:59:45Z")

</div>

> [@Richie](#):
>
> Could I also fire a second API call to update that User Field?

Certainly 🙂

Each time you do any action in Discourse, you can check the network tab of your browser dev tools to see the query that was made.

For example, here I save the profile of a user:

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/3/5/835bca9a8d49e0a9deb79ad5ba7ce7ec64c1ef40.png)

You see the request URL, mentioning the username, and the type of request (PUT).  
On the Payload tab, you see the relevant data:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/e/8/be844c5f3f9a75e9c2867ed6939b3da9f3ee7a8e.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/0/4/0/0406eff840bb2aae579f75101d03cecbd8db11c1.png)

The custom fields are listed as `user_fields[X]` where X is the number of the custom field.

* * *

Edit: I saw that you figured it out on #Development, so, just to crosslink… 🙂

> [@Updating Custom User Field through the API](https://meta.discourse.org/t/updating-custom-user-field-through-the-api/254515):
>
> I’ve been trying to reverse engineer the updating of a user\_field value. I did this by following the steps in [Reverse engineer the Discourse API](https://meta.discourse.org/t/reverse-engineer-the-discourse-api/20576), I edited a test user and made a note of what was occurring in the network tab of the browser. I can see that I need to PUT to this url: https://example.com/u/my-username-here.json Where I got a bit confused was by not seeing a json payload but instead it’s some formdata. The payload was: user\_fields%5B1%5D=some+dji%2C+some+Autel&user\_fields%5B5…

---

_[View the full topic](https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318)._
