# Override Incoming Webhook Username

**URL:** <https://forum.mattermost.com/t/override-incoming-webhook-username/3289>\
**Category:** Troubleshooting\
**Created:** [May 19, 2017, 7:27pm UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289 "2017-05-19T19:27:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcarpenterjr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mcarpenterjr/32/1987_2.png) [@mcarpenterjr](https://forum.mattermost.com/u/mcarpenterjr)\
**Post date:** [May 19, 2017, 7:27pm UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/1 "2017-05-19T19:27:24Z")

</div>

What determines an incoming webhook’s username? Can this be changed?

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [May 20, 2017, 12:05am UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/2 "2017-05-20T00:05:58Z")

</div>

Yes, on the config.json and I believe thru the system console, you can change it.

And for further information on how to use it, you can read [Redirect](https://docs.mattermost.com/developer/webhooks-incoming.html) more specifically additional notes item 3.

> In addition, with Enable integrations to override usernames turned on, you can also override the username the message posts as by providing a username parameter in your JSON payload. For example, you might want your message looking like it came from a robot so you can use payload={“username”: “robot”, “text”: “Hello, this is some text.”} to change the username of the post to “robot”. Note, to combat any malicious users from trying to use this to perform phishing attacks a BOT indicator appears next to posts coming from webhooks.

---

<div class="post-metadata">

**Author:** ![mcarpenterjr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mcarpenterjr/32/1987_2.png) [@mcarpenterjr](https://forum.mattermost.com/u/mcarpenterjr)\
**Post date:** [May 22, 2017, 5:44pm UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/3 "2017-05-22T17:44:13Z")

</div>

I was doing that, however I did not enable overrides in the system. Thank You!

---

<div class="post-metadata">

**Author:** ![mcarpenterjr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/mcarpenterjr/32/1987_2.png) [@mcarpenterjr](https://forum.mattermost.com/u/mcarpenterjr)\
**Post date:** [May 23, 2017, 4:00pm UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/4 "2017-05-23T16:00:30Z")

</div>

So that works if you use a regular mattermost payload, but what about for attachments?

---

<div class="post-metadata">

**Author:** ![prixone](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/prixone/32/1184_2.png) [@prixone](https://forum.mattermost.com/u/prixone)\
**Post date:** [May 23, 2017, 4:03pm UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/5 "2017-05-23T16:03:09Z")

</div>

[https://docs.mattermost.com/developer/message-attachments.html](https://docs.mattermost.com/developer/message-attachments.html)

Attachments have its own array into the payload from my understanding, never used it though…

If you meant an actual file upload I am unsure the incoming webhook can do that in this case you might want to check the API it self [https://api.mattermost.com/v4/#tag/files%2Fpaths%2F~1files%2Fpost](https://api.mattermost.com/v4/#tag/files%2Fpaths%2F~1files%2Fpost)

---

<div class="post-metadata">

**Author:** ![eldos](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/eldos/32/4800_2.png) [@eldos](https://forum.mattermost.com/u/eldos)\
**Post date:** [May 13, 2021, 11:13am UTC](https://forum.mattermost.com/t/override-incoming-webhook-username/3289/6 "2021-05-13T11:13:31Z")

</div>

We observed that the webhook is taking name of user created it. Instead of enabling integrations to override usernames, is it possible to attach a fixed username (bot) for a given webhook.
