All I remember is McCain gave the dossier to the FBI.
At the very beginning it was reported that the initial draft was actually a fiction story written by one of the Utah groups son for a college assignment.
When Trump won the nomination the “opposition research” was given to Hillarys campaign. (Did they set her up?). She then gave it to others to research it in greater detail.