    def check_authenticator_managed_groups(self):
        """Raise error on group-management APIs if Authenticator is managing groups"""
        warn(
            "check_authenticator_managed_groups is deprecated in JupyterHub 5.3.",
            DeprecationWarning,
            stacklevel=2,
        )
        if self.authenticator.manage_groups:
            raise web.HTTPError(400, "Group management via API is disabled")
Raise error on group-management APIs if Authenticator is managing groups
jupyterhub/apihandlers/groups.py