Manual:$wgAddGroups

Details
If a group can add any right (example: bureaucrats can add any right): If a group can add only some rights (example: bureaucrats can add only sysop and bot groups):