public List<String> execute(Environment environment) throws Exception {
List<String> groupIds = new ArrayList<String>();
FindGroupsCmd findGroupsCmd = new FindGroupsCmd(userId);
List<Group> groups = findGroupsCmd.execute(environment);
for (Group group: groups) {
groupIds.add(group.getId());
}
return groupIds;