Kendall Jenner has been granted a restraining order from an alleged trespasser which will last for three years.