diff --git a/moto/iam/responses.py b/moto/iam/responses.py index 8aae7cc64..012988883 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -494,7 +494,7 @@ class IamResponse(BaseResponse): max_items = self._get_param("MaxItems") users = iam_backend.list_users(path_prefix, marker, max_items) template = self.response_template(LIST_USERS_TEMPLATE) - return template.render(action="List", users=users) + return template.render(action="List", users=users, isTruncated=False) def update_user(self): user_name = self._get_param("UserName") @@ -1725,6 +1725,7 @@ USER_TEMPLATE = """<{{ action }}UserResponse> LIST_USERS_TEMPLATE = """<{{ action }}UsersResponse> <{{ action }}UsersResult> + {{ isTruncated }} {% for user in users %} diff --git a/tests/test_iam/test_iam.py b/tests/test_iam/test_iam.py index 55b6b749c..a30aa83f4 100644 --- a/tests/test_iam/test_iam.py +++ b/tests/test_iam/test_iam.py @@ -808,6 +808,7 @@ def test_list_users(): user["UserName"].should.equal("my-user") user["Path"].should.equal("/") user["Arn"].should.equal("arn:aws:iam::{}:user/my-user".format(ACCOUNT_ID)) + response["IsTruncated"].should.equal(False) conn.create_user(UserName="my-user-1", Path="myUser") response = conn.list_users(PathPrefix="my")