A warrant is generally an order that serves as a specific type of authorization, that is, a writ issued by a competent officer, usually a judge or magistrate, that permits an otherwise illegal act that would violate individual rights in order to enforce the law and aid in investigations; affording the person executing the writ protection from damages if the act is performed.