# Como o Discourse obtém os nomes completos dos usuários importados?

**URL:** <https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916>\
**Category:** Development\
**Created:** [Julho 23, 2018, 9:54am 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:** 2

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [Julho 23, 2018, 10:06am UTC](https://meta.discourse.org/t/how-does-discourse-get-full-names-of-imported-users/92916/2 "2018-07-23T10:06:11Z")

</div>

I’m assuming you are using one of the official import scripts or at least based your import script on the base importer.

At first it tries to guess the name from the email address:

> <https://github.com/discourse/discourse/blob/84ab825e41126c1954b714b245f45e3072878dea/script/import_scripts/base.rb#L299-L299>

And, if the original username was changed during the import (e.g. because it contained Chinese characters, which aren’t allowed in usernames) then it will set the name to the original username.

> <https://github.com/discourse/discourse/blob/84ab825e41126c1954b714b245f45e3072878dea/script/import_scripts/base.rb#L315-L315>

---

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