def iam_user_groups(self, username): """ This function lists groups of a user :param username: the user whoes groups should be listed :return: """ from wrapper.iam import Iam iam = Iam(session=self.session) ret = iam.list_user_groups(username=username) return ret
def list_user_groups(self, username): i = Iam() ret = i.list_user_groups(username=username) return ret