# phpBB3 importer: username\_as\_name setting doesn't apply to anonymous users

**URL:** https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232
**Category:** Bug
**Created:** [July 13, 2016, 5:22pm UTC](https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232 "2016-07-13T17:22:16Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![palant](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/palant/32/104531_2.png) [@palant](https://meta.discourse.org/u/palant)
#### Post date: [July 13, 2016, 5:22pm UTC](https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232/1 "2016-07-13T17:22:16Z")

</div>

I would have expected `username_as_name` setting to apply to all users imported from phpBB - the importer modifies the usernames both for regular and anonymous users. However, this setting currently only applies to regular users, anonymous users always get an empty name.

Besides, wouldn’t it make sense to have “only if modified” as an option here? It would probably be best to set the original username as Discourse name only if original username and Discourse username aren’t the same.

---

<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: [July 13, 2016, 8:10pm UTC](https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232/2 "2016-07-13T20:10:36Z")

</div>

I wouldn’t call this a bug. 😉  
But yes, the “only if modified” sounds like a good idea.

---

<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: [July 27, 2016, 8:36pm UTC](https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232/3 "2016-07-27T20:36:16Z")

</div>

This is now fixed:  
[https://github.com/discourse/discourse/pull/4350](https://github.com/discourse/discourse/pull/4350)

And the “only if modified” logic for names is implemented too:  
[https://github.com/discourse/discourse/pull/4349](https://github.com/discourse/discourse/pull/4349)

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [July 28, 2016, 11:16am UTC](https://meta.discourse.org/t/phpbb3-importer-username-as-name-setting-doesnt-apply-to-anonymous-users/47232/4 "2016-07-28T11:16:02Z")

</div>


