# Hidden User Fields

**URL:** https://meta.discourse.org/t/hidden-user-fields/388397
**Category:** Theme component
**Tags:** unmaintained, user-custom-fields
**Created:** [November 13, 2025, 4:09pm UTC](https://meta.discourse.org/t/hidden-user-fields/388397 "2025-11-13T16:09:39Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![putty](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/putty/32/370902_2.png) [@putty](https://meta.discourse.org/u/putty)
#### Post date: [November 13, 2025, 4:09pm UTC](https://meta.discourse.org/t/hidden-user-fields/388397/1 "2025-11-13T16:09:39Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Summary** | Create user fields that are only visible to specified groups |
| 🛠 | **Repository** | [discourse-hidden-user-fields](https://github.com/dereklputnam/discourse-hidden-user-fields) |
| ❓ | **Install Guide** | [How to install a theme or theme component](https://meta.discourse.org/t/how-do-i-install-a-theme-or-theme-component/63682) |
| 📖 | **New to Discourse Themes?** | [Beginner’s guide to using Discourse Themes](https://meta.discourse.org/t/beginners-guide-to-using-discourse-themes/91966) |

Install this theme component

# Detailed Description

> ⚠ **Use caution with sensitive data in these fields. Fields are not found in the source, but could be visible if something breaks. In addition, results will come in up in the search tool.** ⚠

I have two users, derek\_test (left) and anon9 (right). ID & Company fields are both populated in their profiles, but only one is visible to the other. derek\_test can see `ID` and anon9 can see `Company`.

## User profiles

 ![CleanShot 2025-11-13 at 09.47.28](https://global.discourse-cdn.com/meta/original/4X/2/9/5/295d0ea1486d3f4ddfb2f0210919b0bfb05412fe.jpeg)

## User Cards

 ![CleanShot 2025-11-13 at 10.27.11](https://global.discourse-cdn.com/meta/original/4X/f/f/9/ff96516bfae304e9c1b165212c7a5aac2ae6e6c2.png)

## User Directory

In this case, anon9 (right) can see the company and search for Acme.

 ![CleanShot 2025-11-13 at 10.24.30](https://global.discourse-cdn.com/meta/original/4X/e/b/1/eb15881b3193423ca69cf8a22f35b5cd086d258b.jpeg)

* * *

# Settings

![CleanShot 2025-11-13 at 16.17.43](https://global.discourse-cdn.com/meta/original/4X/9/f/a/9fa43848f06d02dff14c0a17c0c6788cdbe18375.gif)

- **Field Name** : insert name of custom user field (one per object)
- **Allowed Groups:** Select allowed groups from the list

## Prerequisites

This leverages [Custom User Fields](https://meta.discourse.org/t/creating-and-configuring-custom-user-fields/113192?tl=en). These settings dictate where the fields will be visible:

 ![CleanShot 2025-11-13 at 09.18.56](https://global.discourse-cdn.com/meta/original/4X/a/6/e/a6eb14dbd44b27970fe144ccc29a29fd48346b3c.png)

> ⚠ **Note:** `Searchable` is referring to the user directory, not the site-wide search. **Matching terms are still visible via this search.** ⚠

> ✅ Revisit these settings once the fields are populated or create permissions ahead of time, so that these fields are never exposed.

---

_[View the full topic](https://meta.discourse.org/t/hidden-user-fields/388397)._
