# 在邀请时设置用户名和邮件地址

**URL:** https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690
**Category:** Support
**Created:** [2019年五月2日 12:43 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690 "2019-05-02T12:43:34Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![TheRojam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/therojam/32/128396_2.png) [@TheRojam](https://meta.discourse.org/u/TheRojam)
#### Post date: [2019年五月2日 12:43 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/1 "2019-05-02T12:43:34Z")

</div>

We want to use discourse as an organization where we want to invite people with a preset nickname and mailadress (which is their self given name/mail in the registration at our organization).  
We would like to that they do not change the name and mail, due to compliance (they set it at offline registration at our organization.

Where can we set this or do we need a plugin to close these changes?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年五月2日 13:21 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/2 "2019-05-02T13:21:43Z")

</div>

The best solution would be to use sso and have whatever system is already in place enforce this w rules.

---

<div class="post-metadata">

### Author: ![TheRojam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/therojam/32/128396_2.png) [@TheRojam](https://meta.discourse.org/u/TheRojam)
#### Post date: [2019年五月3日 07:34 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/3 "2019-05-03T07:34:03Z")

</div>

we do not have any system already in place.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2019年五月3日 12:13 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/4 "2019-05-03T12:13:43Z")

</div>

> [@TheRojam](#):
>
> which is their self given name/mail in the registration at our organization).

What system manages their email?

There is email domains whitelist, such requires that they have a certain email domain, and you can disable changing user names.

You could create the accounts with the API and then direct people to the site.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [2019年五月3日 13:04 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/5 "2019-05-03T13:04:44Z")

</div>

What you’re asking for is identity management.

Discourse isn’t an IdM. Whether you have one or not that what you _need_. IdM+SSO is the way to achieve this.

---

<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: [2022年八月25日 19:27 UTC](https://meta.discourse.org/t/set-username-and-mail-address-at-invation/116690/7 "2022-08-25T19:27:40Z")

</div>


