filtering of ContactGroup in api