# Discourse 如何获取导入用户的完整姓名？

**URL:** <https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916>\
**Category:** Development\
**Created:** [2018 年7 月 23 日 09:54 UTC](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916 "2018-07-23T09:54:51Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![mrded](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mrded/32/62438_2.png) [@mrded](https://meta.discourse.org/u/mrded)\
发布日期： [2018 年7 月 23 日 09:54 UTC](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916/1 "2018-07-23T09:54:51Z")

</div>

We have a database of users to be migrated into Discourse. All these users have only emails and random usernames.

After a migration, I noticed that most of the users got `user.name` fields, which are real full names.

First of all, I thought that Discours tries to generate a name from an email. But then I found some users with Chinese characters, and they emails and usernames are not even similar to the generated full name.

Again, we don’t have a full name, Discourse generates it itself and I don’t understand how. We only have an email and a username, which is random.

The question is, how does discourse generate a `user.name`? Thanks.

---

_[View the full topic](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916)._
