@classmethod
    def get_user_data(cls, couch_user, property_names):
        hubspot_properties = {}
        hubspot_properties.update(get_subscription_properties_by_user(couch_user))
        hubspot_properties.update(get_domain_membership_properties(couch_user))
        hubspot_properties.update(get_ab_test_properties(couch_user))

        try:
            data = [{"property": prop, "value": hubspot_properties[prop]} for prop in property_names]
        except __HOLE__:
            raise CommandError("Property should be one of following\n{}".format(
                hubspot_properties.keys()
            ))
        user_data = {
            "email": couch_user.email,
            "properties": data
        }
        return user_data
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/analytics/management/commands/update_hubspot_properties.py/Command.get_user_data