Fixes #5734 - API for external groups management

`ExternalUsergroup.any_instance.expects(:refresh)`?