implemented iam list users

This commit is contained in:
Ernesto Ruy Sanchez 2016-07-20 15:12:02 -07:00
commit e84dad6509
3 changed files with 43 additions and 0 deletions

View file

@ -364,6 +364,15 @@ class IAMBackend(BaseBackend):
return user
def list_users(self, path_prefix, marker, max_items):
users = None
try:
users = self.users
except KeyError:
raise IAMNotFoundException("Users {0}, {1}, {2} not found".format(path_prefix, marker, max_items))
return users
def create_login_profile(self, user_name, password):
# This does not currently deal with PasswordPolicyViolation.
user = self.get_user(user_name)