def execute(self, ns, users): if users: for user in users: inst = account.get_user(ns, user) yield inst else: for user in account.list_users(ns): yield user
def execute(self, ns): for s in sorted(account.list_users(ns), key=lambda i: i.Name): yield (s.Name, s.UserID, s.ElementName)