# Pending Users Show Up in Users Page

**URL:** <https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668>\
**Category:** Product Support\
**Created:** [September 5, 2019, 9:01am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668 "2019-09-05T09:01:32Z")\
**Posts on this page:** 8\
**Page:** 1

## AI-generated summary

In the discussion "Pending Users Show Up in Users Page", **sfoster** reported an issue where pending users are visible on the users page (/u), even for non-logged in visitors and non-admins. **codinghorror** asked **dax** to reproduce the issue, and **dax** was able to do so only when the timestamp was set to "Today". **sfoster** confirmed that the problem persists even after one day. **codinghorror** agreed that pending users shouldn't show up in the user list and asked **neil** to add it to the list for the next week. **neil** has since fixed the issue, and the user directory will be updated within 24 hours after deploying the fix.

<div class="post-metadata">

**Author:** ![sfoster](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sfoster](https://meta.discourse.org/u/sfoster)\
**Post date:** [September 5, 2019, 9:01am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/1 "2019-09-05T09:01:33Z")

</div>

We have set up discourse, so that we need to approve users. However, even when the user approval is pending the user still shows up on the users page (/u), even for non-logged in visitors to the site, non-admins etc. Am I missing a setting here? Why would pending users show up on a users page without approval?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [September 5, 2019, 10:00am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/2 "2019-09-05T10:00:36Z")

</div>

Interesting, can you repro this @dax?

---

<div class="post-metadata">

**Author:** ![sfoster](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sfoster](https://meta.discourse.org/u/sfoster)\
**Post date:** [September 5, 2019, 10:13am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/3 "2019-09-05T10:13:18Z")

</div>

FYI, in our case here where we discovered the issue, the user signed up via the Facebook login. Not sure if that matters or not.

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [September 5, 2019, 11:08am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/4 "2019-09-05T11:08:38Z")

</div>

I can repro this issue, but only if I set the timestamp to “Today”:

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

Default Timestamp set to Week (but I also tried other timestamps, All Time, Year, Quarter, Month with the same result)  
 ![image](https://global.discourse-cdn.com/meta/optimized/3X/4/6/46e1c8e161699d5e495d8527bd2229cbd11f0f0e_2_517x44.png)

Timestamp set to **Today** :

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/a/9a5cac6dfea53068060a0c9f01a9ef1869b12418.png)

---

<div class="post-metadata">

**Author:** ![sfoster](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sfoster](https://meta.discourse.org/u/sfoster)\
**Post date:** [September 6, 2019, 11:03am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/5 "2019-09-06T11:03:28Z")

</div>

Any idea what is causing this issue? I’m not sure why you only were able to repro it for “Today”, but that could be because you create the user today. I can confirm that problem doesn’t go away after one day. Thoughts? Doesn’t seem like the user page respects the pending users restriction.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [September 6, 2019, 9:09pm UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/6 "2019-09-06T21:09:38Z")

</div>

I tend to agree that pending users shouldn’t show up in the user list. Can you add this to your list @neil for next week?

---

<div class="post-metadata">

**Author:** ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)\
**Post date:** [September 11, 2019, 7:22pm UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/7 "2019-09-11T19:22:43Z")

</div>

Fixed! After deploying the fix, the user directory will be updated within 24 hours (but should be pretty soon after deploy).

[https://github.com/discourse/discourse/commit/7331e0865ad72bbdd4d7d9d17c818a64acd41deb](https://github.com/discourse/discourse/commit/7331e0865ad72bbdd4d7d9d17c818a64acd41deb)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [September 17, 2019, 1:00am UTC](https://meta.discourse.org/t/pending-users-show-up-in-users-page/127668/8 "2019-09-17T01:00:00Z")

</div>

Closed on September 17, 2019, 1:00am UTC

This topic was automatically closed after 4 days. New replies are no longer allowed.
