return dictionary of security groups