# File lib/fog/aws/models/iam/managed_policies.rb, line 39
        def all_by_user(username, options={})
          body = service.list_attached_user_policies(username, page_params(options)).body
          merge_attributes(body)

          body['Policies'].map do |policy|
            service.get_policy(policy['PolicyArn']).body['Policy']
          end
        end