# Hide badge user list?

**URL:** https://meta.discourse.org/t/hide-badge-user-list/46471
**Category:** Feature
**Created:** [June 26, 2016, 3:33pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471 "2016-06-26T15:33:46Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [June 26, 2016, 3:33pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/1 "2016-06-26T15:33:46Z")

</div>

Is there a way to remove the list of users granted a particular badge — while still having the badge enabled and listed on the main Badges page?

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [June 26, 2016, 6:05pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/2 "2016-06-26T18:05:02Z")

</div>

Can you give more information as to why this is wanted? What kind of badge do you want to remove the list from?

In my experience, there isn’t too much competition based off the badge list pages.

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [June 27, 2016, 3:24am UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/3 "2016-06-27T03:24:29Z")

</div>

I want the badge still listed on the main page, I just don’t want non-admins to see the list of users that have that badge.

My context is that for buying a certain product on my site, they get a badge. And I don’t really want anyone to be able to see that entire list of users and who bought the product. However I still want the badge visible on the individual users’ profile.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [June 27, 2016, 6:08am UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/4 "2016-06-27T06:08:14Z")

</div>

At the moment there is no such feature. Not against it, but it is very subtle to explain:

We have:  
“Show badge on the public badges page”

We would have to add  
“Show all users with this badge on the public badge page”

There is a big question though, are you protecting against anything with such a feature?

People can still scrape your user list to figure out the full list of users with a particular badge.

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [July 1, 2016, 3:53pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/5 "2016-07-01T15:53:12Z")

</div>

Adding that additional option would be great, if possible and doesn’t bloat. I’m sure there are other ways for non-admins to get this list of users somehow. I’m just trying to protect against the casual observer being able to see the list.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 1, 2016, 11:06pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/6 "2016-07-01T23:06:41Z")

</div>

Hmm then why not use CSS, hide the div and replace it with users not visible ?

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [July 1, 2016, 11:43pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/7 "2016-07-01T23:43:26Z")

</div>

That’s a good idea. Is there a way to do that without hiding the user list on _every_ badge page?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [July 2, 2016, 12:22am UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/8 "2016-07-02T00:22:02Z")

</div>

> [@sam](#):
>
> why not use CSS, hide the div

I recently looked into doing similar as a possible way of automatically “tagging” users.

In my case, I created a badge that would be granted for excessively Flagging posts that were subsequently disagreed with by moderators.

I could hide it OK from the Badge pages and User Card, but not the users Profile page nor the “hidden” badge page if the link was followed.

Until CSS has a “parent selector” the only things I could target using CSS alone were the icon, title and summary.

```plaintext
<div class="ember-view badge-card medium hyperlink" id="ember6479">
<!----><!---->
<div class="badge-contents">
  <div class="badge-icon badge-type-bronze">
    <i class="fa fa-bell-slash"></i>
  </div>
  <div class="badge-info">
    <div class="badge-info-item">
      <h3>crywolf</h3>
      <div class="badge-summary">Members that Flag poorly</div>
    </div>
  </div>
</div>
</div>

```

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [July 2, 2016, 12:33am UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/9 "2016-07-02T00:33:14Z")

</div>

A PR to push a class to the top is totally welcome, it’s a very simple change

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [July 3, 2016, 6:24pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/10 "2016-07-03T18:24:27Z")

</div>

It took longer than I thought it would to find, but found I did.

[https://github.com/discourse/discourse/pull/4304](https://github.com/discourse/discourse/pull/4304)

---

<div class="post-metadata">

### Author: ![erlend\_sh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/erlend_sh/32/119475_2.png) [@erlend\_sh](https://meta.discourse.org/u/erlend_sh)
#### Post date: [August 21, 2017, 2:15pm UTC](https://meta.discourse.org/t/hide-badge-user-list/46471/11 "2017-08-21T14:15:18Z")

</div>


