Restrict members to join any one group

I want to restrict the user to join only one group on the basis of badges, that means if I allot a specific badge ‘dev’ to a user so they would only be able to join dev category only, so how can I achieve it.

Any suggestions on this that how can we achieve it?

Is there any workaround possible to achieve this? @JammyDodger

If you are only adding them to one group, just create the category and only assign that group to see it – and nothing else.