# Can I restrict specific strings in usernames?

**URL:** <https://meta.discourse.org/t/can-i-restrict-specific-strings-in-usernames/70528>\
**Category:** Product Support\
**Created:** [9월 21, 2017, 5:23오후 UTC](https://meta.discourse.org/t/can-i-restrict-specific-strings-in-usernames/70528 "2017-09-21T17:23:53Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![jordan1909](https://avatars.discourse-cdn.com/v4/letter/j/9f8e36/32.png) [@jordan1909](https://meta.discourse.org/u/jordan1909)\
**Post date:** [9월 22, 2017, 12:25오후 UTC](https://meta.discourse.org/t/can-i-restrict-specific-strings-in-usernames/70528/8 "2017-09-22T12:25:04Z")

</div>

So possibly but I actually don’t care if the substring exists in the middle. I am more so determining the ending. So for example on our site this would be the case:

John\_company != allowed  
john\_companyAsdf == allowed  
john\_company\_john == allowed

So I don’t necessarily mind if the substring exists in the begining or middle or if there are different variations it is more so ensuring users cannot use our identifier at the end of a username.

---

_[View the full topic](https://meta.discourse.org/t/can-i-restrict-specific-strings-in-usernames/70528)._
