# Create User Button

**URL:** https://meta.discourse.org/t/create-user-button/136067
**Category:** Feature
**Created:** [December 16, 2019, 8:16am UTC](https://meta.discourse.org/t/create-user-button/136067 "2019-12-16T08:16:53Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Nisutec](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nisutec/32/162327_2.png) [@Nisutec](https://meta.discourse.org/u/Nisutec)
#### Post date: [December 16, 2019, 8:16am UTC](https://meta.discourse.org/t/create-user-button/136067/1 "2019-12-16T08:16:53Z")

</div>

At the moment it is not possible to create a new User from `Administration > Users`.  
Please add a Button to create a new User from the Admin Pannel. This new User creation bypasses checks like the “reserved usernames” setting.

---

<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: [December 17, 2019, 6:14am UTC](https://meta.discourse.org/t/create-user-button/136067/2 "2019-12-17T06:14:51Z")

</div>

What? You don’t “create” users, they sign up.

---

<div class="post-metadata">

### Author: ![Nisutec](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nisutec/32/162327_2.png) [@Nisutec](https://meta.discourse.org/u/Nisutec)
#### Post date: [December 17, 2019, 7:08am UTC](https://meta.discourse.org/t/create-user-button/136067/3 "2019-12-17T07:08:42Z")

</div>

for example I will create a AutoMod User for automated tasks but over the sign up methode it is not possible because the word “mod” is on the reserved usernames list.

And over the normal sign up methode i must create also a Mail Adress for this Bot Account.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [December 17, 2019, 11:13pm UTC](https://meta.discourse.org/t/create-user-button/136067/4 "2019-12-17T23:13:57Z")

</div>

> [@Nisutec](#):
>
> for example I will create a AutoMod User for automated tasks but over the sign up methode it is not possible because the word “mod” is on the reserved usernames list.

You can change a username after they are signed up.

> [@Nisutec](#):
>
> And over the normal sign up methode i must create also a Mail Adress for this Bot Account.

I suggest using plus-addressing (`username+bot@example.org`) to manage such accounts. You may of course turn off email for the user.

---

<div class="post-metadata">

### Author: ![Nisutec](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nisutec/32/162327_2.png) [@Nisutec](https://meta.discourse.org/u/Nisutec)
#### Post date: [December 18, 2019, 5:46am UTC](https://meta.discourse.org/t/create-user-button/136067/5 "2019-12-18T05:46:55Z")

</div>

> [@maiki](#):
>
> I suggest using plus-addressing ( `username+bot@example.org` ) to manage such accounts. You may of course turn off email for the user.

This is a good workaround but not a clean solution. Is it possible to verify this Mail Adress from the Administration panel.

---

<div class="post-metadata">

### Author: ![maiki](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/maiki/32/233950_2.png) [@maiki](https://meta.discourse.org/u/maiki)
#### Post date: [December 18, 2019, 9:11pm UTC](https://meta.discourse.org/t/create-user-button/136067/6 "2019-12-18T21:11:00Z")

</div>

> [@Nisutec](#):
>
> Is it possible to verify this Mail Adress from the Administration panel.

I don’t recall, I just create a new account as usual and follow the instructions. I think it is a link in an email.

---

<div class="post-metadata">

### Author: ![JimPas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jimpas/32/148179_2.png) [@JimPas](https://meta.discourse.org/u/JimPas)
#### Post date: [December 18, 2019, 9:30pm UTC](https://meta.discourse.org/t/create-user-button/136067/7 "2019-12-18T21:30:53Z")

</div>

> [@Nisutec](#):
>
> Is it possible to verify this Mail Adress from the Administration panel.

You can send a test email to the address you create by going to _Admin/Emails_ in your Dashboard, fill in the address at the lower left, then click on “Send Test Email”.  
If the test wasn’t received, go to _Emails_ again and look in the _Bounced_ and the _Rejected_ tabs to see if any message has bounced or been rejected (bad address, undeliverable, etc.).

---

<div class="post-metadata">

### Author: ![Nisutec](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nisutec/32/162327_2.png) [@Nisutec](https://meta.discourse.org/u/Nisutec)
#### Post date: [December 23, 2019, 7:29pm UTC](https://meta.discourse.org/t/create-user-button/136067/8 "2019-12-23T19:29:12Z")

</div>

Ok but i don’t can set the mail adress to “no\_email” like the system user.

---

<div class="post-metadata">

### Author: ![seong](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/seong/32/259022_2.png) [@seong](https://meta.discourse.org/u/seong)
#### Post date: [June 22, 2022, 3:31am UTC](https://meta.discourse.org/t/create-user-button/136067/9 "2022-06-22T03:31:18Z")

</div>

Use `rake admin:create` to create a new user without having to go through email confirmation. There should be a better way for the admin to create additional accounts, but this seems to be the least complicated way to do it at the moment.

---

<div class="post-metadata">

### Author: ![osioke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/osioke/32/238946_2.png) [@osioke](https://meta.discourse.org/u/osioke)
#### Post date: [June 22, 2022, 7:37am UTC](https://meta.discourse.org/t/create-user-button/136067/10 "2022-06-22T07:37:33Z")

</div>

> [@seong](#):
>
> There should be a better way for the admin to create additional accounts

A UI on the admin dashboard? I feel like I have seen this feature as being available, not sure though cc @JammyDodger

---

<div class="post-metadata">

### Author: ![Cozdabuch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cozdabuch/32/139120_2.png) [@Cozdabuch](https://meta.discourse.org/u/Cozdabuch)
#### Post date: [June 22, 2022, 8:32pm UTC](https://meta.discourse.org/t/create-user-button/136067/11 "2022-06-22T20:32:54Z")

</div>

This would be supremely useful for administration of small closed communities. Especially those using discourse in a business communications/knowledge base capacity

The current means are not optimal for such use cases

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [June 23, 2022, 6:56am UTC](https://meta.discourse.org/t/create-user-button/136067/13 "2022-06-23T06:56:11Z")

</div>

I think things have gotten a little muddled in here. 🙂

To create an admin in the manner the OP is suggesting is as simple as signing up a user in the regular fashion, activating their email manually from their user page (if you need to?), and granting admin powers at the same time. You can also temporarily disable `reserved usernames` if you want to use one of them when you sign them up. 👍

I create test users all the time, and it’s very quick and easy.

(and the plus address email trick @maiki suggested comes in useful too, or you can set up aliases if you have a domain inbox that supports that)

---

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [November 9, 2022, 7:16pm UTC](https://meta.discourse.org/t/create-user-button/136067/14 "2022-11-09T19:16:06Z")

</div>

> [@JammyDodger](#):
>
> I create test users all the time, and it’s very quick and easy.

…and the way to do that is… ? I would like to create a `test_user` that doesn’t have an email and has certain access privileges, so I can use it for an API key.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 9, 2022, 8:20pm UTC](https://meta.discourse.org/t/create-user-button/136067/15 "2022-11-09T20:20:11Z")

</div>

Mine tend to have alias emails so I can use them as real users, but you can do it without too. 🙂 There’s not a lot of magic to it:

- Go to `/signup` in separate browser/private window
- Enter email as something like `NAME@email.invalid`\[1\] (+ username and password)
- As admin, activate the new user from their `admin/user` page 👍
- Bump trust level as required

* * *

1. This will register as a useable email, but Discourse won’t attempt to send any emails to the `.invalid` ones

---

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [November 9, 2022, 8:25pm UTC](https://meta.discourse.org/t/create-user-button/136067/16 "2022-11-09T20:25:13Z")

</div>

I tried `test-user@email.invalid` for email and a made-up password.

But I get “Sorry, there was an error authorizing your account. Please try again.” – we have an LDAP plugin (discourse-ldap-auth) enabled for our instance.

I’m a Discourse admin so I can manage users + set permissions and so forth. I just wish we had a “create user” operation within the admin screens, so we could handle this directly.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [November 9, 2022, 8:39pm UTC](https://meta.discourse.org/t/create-user-button/136067/17 "2022-11-09T20:39:29Z")

</div>

I’m afraid I don’t have any experience with that plugin. Can you register a new user in the regular way you would normally, and then swop the email out from their preferences?

---

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [November 9, 2022, 8:58pm UTC](https://meta.discourse.org/t/create-user-button/136067/18 "2022-11-09T20:58:16Z")

</div>

> Can you register a new user in the regular way you would normally, and then swop the email out from their preferences?

No, the authentication through LDAP has to succeed. (I mean, yes, I could ask a user who doesn’t yet have an account on Discourse to sign up and sacrifice their account so I could use it for my test purposes… but that’s not realistic.)

I’ve tried the `+` email approach — e.g. if my user name is `splendid@foobar.com`, and I have an account in Discourse, then I could create another account with `splendid+test@foobar.com` — but it isn’t permitted. Only the exact email account matches for LDAP authentication.

I really just want a test account, something like `discobot` or `system` but with reduced privileges.

---

<div class="post-metadata">

### Author: ![Tris20](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tris20/32/264639_2.png) [@Tris20](https://meta.discourse.org/u/Tris20)
#### Post date: [November 9, 2022, 9:29pm UTC](https://meta.discourse.org/t/create-user-button/136067/19 "2022-11-09T21:29:37Z")

</div>

I don’t remember the exact details, but I think there was a way to either disable ldap and login locally, or have both types of log in possible. Something like enabling these:

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/b/5/fb503d7d1fa7c09df50f2612608c0e5047f05fc4.png)  
and disabling one or two of the ldap login settings. I’m not recommending you mess with this on production just in case, but if you have a staging server see if changing those makes it possible to resolve the first login.

Otherwise is there anyone with an LDAP account who has left the platform? For our server I ended up anonymising someone who had left. It basically decouples the account from email and login, but keeps the account there so I can give it a variety of permissions and impersonate it(after giving it an appropriate name). Likewise I gave it some API keys and use it to perform automated tasks.

---

<div class="post-metadata">

### Author: ![jmsachs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jmsachs/32/107682_2.png) [@jmsachs](https://meta.discourse.org/u/jmsachs)
#### Post date: [November 9, 2022, 11:43pm UTC](https://meta.discourse.org/t/create-user-button/136067/20 "2022-11-09T23:43:33Z")

</div>

> [@Tris20](#):
>
> Otherwise is there anyone with an LDAP account who has left the platform? For our server I ended up anonymising someone who had left.

Huh. OK, I’ll try that…
