# Can I hide an admin?

**URL:** https://meta.discourse.org/t/can-i-hide-an-admin/34504
**Category:** Support
**Created:** [October 14, 2015, 2:28pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504 "2015-10-14T14:28:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [October 14, 2015, 2:28pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/1 "2015-10-14T14:28:09Z")

</div>

Hello, I need to hide an admin user from the staff list.  
I don’t like that he shows in `/about` section.

How could I do that?

---

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [October 14, 2015, 2:47pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/2 "2015-10-14T14:47:15Z")

</div>

I suppose if you wanted, you could just target the div for that admin on the /about page and set it to `display:none` in your admin/customize CSS. It seems to work on meta using Chrome’s inspector, at least.

I’ll admit I’m a bit curious as to why you want a secret admin, though.

---

<div class="post-metadata">

### Author: ![SidV](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sidv/32/119460_2.png) [@SidV](https://meta.discourse.org/u/SidV)
#### Post date: [October 14, 2015, 3:49pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/3 "2015-10-14T15:49:46Z")

</div>

> [@Yuun](#):
>
> I’ll admit I’m a bit curious as to why you want a secret admin, though.

In this case, I’ve got an investor that want to “see” how this site is going, but now he want to “disappear” 🙂

I’m thinking in change the username and put something like: “Secret admin” :lol:

About CSS, I don’t know how to set up that customization, sorry for my ignorance.

Regards!

---

<div class="post-metadata">

### Author: ![Yuun](https://avatars.discourse-cdn.com/v4/letter/y/977dab/32.png) [@Yuun](https://meta.discourse.org/u/Yuun)
#### Post date: [October 14, 2015, 4:13pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/4 "2015-10-14T16:13:37Z")

</div>

Sorry, just went through and double checked with an actual customization, I don’t think applying a CSS rule will be enough since the div ids are, I guess, generated by ember, and are in any case not constant. Maybe there’s something you can do with javascript? Would have to ask someone else though, unfortunately.

What I get for writing out a quick solution without paying enough attention. 😄

I don’t know that there’s a setting for what you’re looking for, renaming the user to something innocuous would at least be the easiest thing to do.

---

<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: [October 14, 2015, 10:45pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/5 "2015-10-14T22:45:01Z")

</div>

If you’re self-hosted, this is possible with a plugin.

```plaintext
# plugin header here

module HideAdminNames
  NAMES_TO_HIDE = %w(investordude blahblahblah).freeze
end

after_initialize do
  class About
    def admins
      @admins ||= User.where(admin: true)
                      .where.not(id: Discourse::SYSTEM_USER_ID)
                      .where.not(username_lower: HideAdminNames::NAMES_TO_HIDE)
                      .order(:username_lower)
    end
  end
end

```

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [November 15, 2018, 12:55pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/6 "2018-11-15T12:55:07Z")

</div>



---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [November 15, 2018, 1:00pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/7 "2018-11-15T13:00:36Z")

</div>

The `div` that wraps around each admin’s information now has a data-attribute that matches their username. So you can use

```plaintext
.about.admins [data-username="USERNAME"] {
  display: none;
}

```

to hide specific admins in that list - swap USERNAME with the username of the admin you want to hide.

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [November 15, 2018, 1:00pm UTC](https://meta.discourse.org/t/can-i-hide-an-admin/34504/8 "2018-11-15T13:00:40Z")

</div>


