# Admins alterando o nome do usuário (não o nome de usuário) devem ser registrados

**URL:** https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511
**Category:** Bug
**Created:** [Outubro 15, 2018, 3:26am UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511 "2018-10-15T03:26:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![tannerfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tannerfilip/32/122253_2.png) [@tannerfilip](https://meta.discourse.org/u/tannerfilip)
#### Post date: [Outubro 15, 2018, 3:26am UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/1 "2018-10-15T03:26:50Z")

</div>

Not sure if this is a bug or a feature, but it looks like when you edit a user’s name, it’s not logged at all as far as I can tell. So for example, if I, as an admin, go to a different user’s preference page, and set the “Name” field. The same goes for if you set it through the admin panel.

That should probably be logged, shouldn’t it?

---

<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: [Outubro 15, 2018, 5:49am UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/2 "2018-10-15T05:49:19Z")

</div>

Seems like a reasonable request and a good starter task cc @erlend_sh

---

<div class="post-metadata">

### Author: ![saurabhp](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saurabhp/32/125182_2.png) [@saurabhp](https://meta.discourse.org/u/saurabhp)
#### Post date: [Novembro 21, 2018, 4:24pm UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/3 "2018-11-21T16:24:41Z")

</div>

Hi @codinghorror ,  
I looked for this bug and I was able to reproduce it.

On investigation, I found out that change of name was getting logged in UserHistory table but it is not shown in UI because it is not a part of staff\_actions. I will try to submit PR for this change.

Let me know if you have any suggestions.

Thanks

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [Novembro 21, 2018, 10:47pm UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/4 "2018-11-21T22:47:14Z")

</div>

> [@saurabhp](#):
>
> I will try to submit PR for this change.

Awesome 🎊

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [Novembro 22, 2018, 2:13am UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/5 "2018-11-22T02:13:30Z")

</div>

Merged! Thank you @saurabhp

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [Novembro 22, 2018, 3:05am UTC](https://meta.discourse.org/t/admins-changing-users-name-not-username-should-be-logged/99511/8 "2018-11-22T03:05:10Z")

</div>


