Shawn and the Salem PD

 How does Shawn have the same access and rights as a Salem PD officer? He doesn't work for them and he doesn't even live in Salem.