I think for server, it is not possible to change the default group for new users to anything other than the 'confluence-users' group.
I could only find this related question/answer, which I don't think helps much, here: https://answers.atlassian.com/questions/36116638
Is there any reason why you can't do something like the following steps?:
Hi Jean Bausch,
My guess its not possible to restricte confluence user group. its a default group when sign up to confluence users add into confluence user group. if you don't want user in confluence user group then move other group.
User sign up options don't Allow people to sign up to create their account
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG