# Staged users remain staged even after activation and must be manually unstaged

**URL:** https://meta.discourse.org/t/staged-users-remain-staged-even-after-activation-and-must-be-manually-unstaged/70714
**Category:** Bug
**Created:** [25 september 2017 om 09:31 UTC](https://meta.discourse.org/t/staged-users-remain-staged-even-after-activation-and-must-be-manually-unstaged/70714 "2017-09-25T09:31:56Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![schungx](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/schungx/32/70989_2.png) [@schungx](https://meta.discourse.org/u/schungx)
#### Post date: [3 oktober 2017 om 10:22 UTC](https://meta.discourse.org/t/staged-users-remain-staged-even-after-activation-and-must-be-manually-unstaged/70714/4 "2017-10-03T10:22:13Z")

</div>

Just in case other people needs to manually _unstage_ a user:

#### Step 0: SSH to your VM

```plaintext
ssh my.discourse.domain.com

```

#### Step 1: Enter the discourse container

```plaintext
cd /var/discourse
sudo ./launcher enter app

```

#### Step 2: Enter the Rails console

```plaintext
rails c

```

#### Step 3, Option 1: Unstage the user by email address

```plaintext
User.find_by_email("email@address.com").update(staged: false)

```

#### Step 3, Option 2: Unstage the user by username

```plaintext
User.where(username: "username").update_all(staged: false)

```

#### Step 4: Finito, get out

Press `^D` a few times to get back out.

---

_[View the full topic](https://meta.discourse.org/t/staged-users-remain-staged-even-after-activation-and-must-be-manually-unstaged/70714)._
