adjusted SearchUsersByGroup to handle groupId