def _parse_permissions(self, result):
        root = result.find('permissions/entities')
        organization, agency, advertiser = None, None, None
        if root:
            advertiser = self.dictify_permission(root.find('advertiser'))
            agency = self.dictify_permission(root.find('agency'))
            organization = self.dictify_permission(root.find('organization'))

        flags = self.dictify_permission(result.find('permissions/flags'))
        flags.update({
            '_type': 'permission',
            'advertiser': advertiser,
            'agency': agency,
            'organization': organization,
        })

        # There will only be one instance here.
        # But the caller expects an iterator, so make a list of it
        self.entities, self.entity_count = [flags, ], 1
.. versionadded:: 2016.3.0
dataset/ETHPy150Open MediaMath/t1-python/terminalone/xmlparser.py/XMLParser._parse_permissions--crossover with--dataset/ETHPy150Open saltstack/salt/salt/modules/rabbitmq.py/check_password