First off, you only have to read the Bible with all of its contradictions, errors and for that matter the personal anecdotes of the authors to understand that it is not God dictated. Worse than that however it paints a picture of a sometimes loving god, a sometimes vengeful god, a sometimes hateful god, a sometimes cruel god etc. It paints a picture of a god that is of no discernible nature meaning that you can understand him in any image that suits you.
One of the common Jewish attitudes to the scriptures is that is the a document showing man's search for God, with all of man's warts and all exposed.
I think you will see one reoccurring theme in the Jewish scriptures is that there were a lot of great men who were rulers that had a lot of great flaws too.. but, according to the Bible, were accepted by god, despite their great flaws.