Merge pull request #669 from netors/feature/implement-iam-list-users-for-boto3
implemented iam list users (Closes #668)
This commit is contained in:
commit
ea319698aa
3 changed files with 48 additions and 0 deletions
|
|
@ -368,6 +368,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue