Is there a way to auto assign an anonymous username without allowing users to create their own?
I think they the easiest way would be to use an external authentication system and DiscourseConnect - Official Single-Sign-On for Discourse (sso). Otherwise you could do it with a plugin. Another solution (though you don’t say exactly why this is a problem) might be theme component that obscured the username.
Sorry I should have given more context. The forum is for victims of abuse so for safeguarding the users should be anonymous. So when registering rather than give them a load of things they can’t do I thought it might just be helpful to have a username generated for them if that makes sense?
There is an anonymous mode option available in discourse but that is not a way to create anonymous accounts. One needs to be able to create an account then they could switch to anonymous profile and post from there. While this may not be the solution you’re looking for, a fully anonymous registration and posting solution doesn’t exist in discourse core. it may be possible to create a custom plugin that just lets someone click a button and populate all fields of the registration form with random anonymous data but then, how do they sign back in once they log out?
Sorry we’re happy with the level of anonymity we have set up, we know who the users are but they aren’t supposed be able to identify each other.
So the only functionality I’m after is setting a generic username automatically when people register and not allowing them to set their own
I’m sure such a system doesn’t exist in discourse but I think it should be achievable in a plugin (or maybe a theme component) to automatically populate the username field. Such a plugin doesn’t exist either.
(@osioke here’s an example of a good audition task for a technical community advocate, perhaps?)
Just raising this again as this is something that we’d like to develop if possible. If anyone has any pointers on who might be able to do this for us that would be great
The suggested theme component sounds like a good approach. It could generate a random username and it would appear just as if the user had entered it. Users could still override it, though. I guess you could hide it with css, but then how would they know their username?
Did anyone end up creating this? Would love to get this exact thing for our forum.