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

The docs say that spaces are not allowed. Anyway, 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, but since it's already documented that spaces are not to be used, I would just follow this information.

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.