Fixes #5734 - API for external groups management

indentation's off by one