Fixes #5734 - API for external groups management