예제 #1
0
 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
예제 #2
0
 def list_user_groups(self, username):
     i = Iam()
     ret = i.list_user_groups(username=username)
     return ret