# 特定のバッジを持つユーザー名を表示しない

**URL:** <https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318>\
**Category:** Support\
**Created:** [2023 年 2 月 7 日午前 9: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:** 10

<div class="post-metadata">

**Author:** ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)\
**Post date:** [2023 年 2 月 8 日午後 5:32 UTC](https://meta.discourse.org/t/do-not-display-the-usernames-that-hold-a-specific-badge/254318/10 "2023-02-08T17:32:28Z")

</div>

これは何か掴んだかもしれません：

> [@Richie](#):
>
> 「ステータス」というユーザーフィールドを作成し、プロフィールに表示できるようにしますが、ユーザー自身は編集できないようにします。

「メンバー」というユーザーフィールドを作成し、編集できないようにしました。

 ![Screenshot 2023-02-08 at 17.28.00](https://global.discourse-cdn.com/meta/original/4X/e/1/8/e18b5d6cddb809b0bf51801c65b743f1808cbe80.png)

テストのためにユーザーを1人編集すると、プロフィールに「メンバー：はい」と表示されます。

 ![Screenshot 2023-02-08 at 17.29.39](https://global.discourse-cdn.com/meta/original/4X/b/a/3/ba305a702fc71b2fe4db11158f526772e9400344.png)

しかし、おそらくこれが決め手になるでしょう：

> [@Richie](#):
>
> この「ステータス」ユーザーフィールドをAPIコールで自動的に更新できますか？

これをどのように進めればよいでしょうか？ 🤔

すでに実行されている既存のAPIコールがあり、誰かがメンバーになると、Discourseにグループに追加するAPIコールを発行します。このユーザーフィールドを更新するために2番目のAPIコールを発行することもできますか？

---

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