Thread:Project:Support desk/Whats the easiest way to get ' user group key ' (2)/reply (5)

I do not know of such a convention, but I know that lowercase letters definitely can be used. I thought a dash then looks better than an underscore; that's basically all.

I also do not positively know that exactly this and that function will break, if your internal user group name contains spaces, but the docs say that spaces are not allowed.

Even if they were allowed, I would still avoid them as spaces are special characters. This for example already starts with the parameters for the migrateUserGroup.php script: The group name with spaces must be quoted, otherwise the script will not work as expected. Will all users remember to quote the group name? I am not sure about that. This pitfall can easily be avoided, if there just is no space in the group name. And there is another argument for keeping the group name "simple": After all this group name is only used internally (mainly in $wgGroupPermissions). The actual users of the wiki will not even see it. For the user, you can use the three wiki pages listed on Manual:User_rights to give the group a speaking name. This name then can include uppercase letters, spaces and whatever you want.

Keeping the internal group name lowercase and dash will make your life easier.