

def get_superuser_actors(self, reset=False):
    'Returns a memoized list of system superusers, including the system actor and all actors with\n        ION_MANAGER role assignment'
    if (reset or (super_actors.superuser_actors is None)):
        found_actors = []
        system_actor_name = CFG.get_safe('system.system_actor', 'ionsystem')
        (sysactors, _) = self.find_resources(restype=RT.ActorIdentity, name=system_actor_name, id_only=True)
        found_actors.extend(sysactors)
        (ion_mgrs, _) = self.find_resources_ext(restype=RT.UserRole, attr_name='governance_name', attr_value='ION_MANAGER', id_only=False)
        (actors, assocs) = self.find_subjects_mult(ion_mgrs, id_only=False)
        super_actors = list({actor._id for (actor, assoc) in zip(actors, assocs) if ((assoc.p == PRED.hasRole) and (assoc.st == RT.ActorIdentity))})
        found_actors.extend(super_actors)
        self.superuser_actors = found_actors
        log.info(('get_superuser_actors(): system actor=%s, superuser actors=%s' % (sysactors, super_actors)))
    return self.superuser_actors

dataset/ETHPy150Open ooici/pyon/pyon/ion/resregistry.py ResourceRegistry.get_superuser_actors/VarMisuse@21/69 `self`->`super_actors`