How to reserve full name like reserved username?

AI-generated summary

The discussion is about restricting full names, like reserved usernames, in Discourse. th21 is looking for a way to disallow users from setting names like “admin” as their full name. ondrej mentions that it’s not possible to restrict names and links to a feature request that didn’t gain much traction. pfaffman suggests that it would take a plugin to achieve this.

ClawdiaWolf shares their experience with a custom plugin for this purpose, but notes that it’s crucial to have a way to whitelist exceptions, citing the example of a user with the legitimate first name “Admin”. supermathie finds this example interesting and relates it to a list of common misconceptions about names. ClawdiaWolf mentions that they might have lost the code for their custom plugin, but is trying to recover it.

I find the user can still set some names like admin as their full name (not username), is there a way that I can disallow this?

Hi,

To my knowledge its not possible to restrict names. There was a feature request a while back but didn’t gain much traction

Sounds like it would take a plugin.

Yes, and if you do it you have to be really careful to have a way to whitelist exceptions.

I had a custom plug-in for this (May even stil have the code on my git server) and hit a snag when we had a user try to join and set his Name to his actual name because his first name is legitimately, Admin.

Oh wow! This would be an excellent addition to https://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/

Apparently I deleted the repo as I can’t find it now. I’m asking the other person who was an admin on that instance if they still have the code.