add an API for querying the groups of a service