Miley Cyrus has won the right for a scissor-wielding intruder arrested on the grounds of her home to stay away from the teenager for the next three years.

Jason Luis Rivera was found hiding in bushes at the singeractress' compound after sparking a security scare in September.

He was convicted of trespassing and sentenced to serve 18 months behind bars, but due to jail overcrowding issues in Los Angeles, Rivera is scheduled to be released in May.

Cyrus requested a fixed restraining order to protect her upon the 40 year old's release and it was granted on Friday, reports TMZ.com.