Warrants to Search either persons or property, consistent with the 4th Amendment, must be predicated on Probable Cause.
Some limited authority exists for law enforcement to temporarily detain occupants of the premises to be searched subject to the warrant.
Such detainment must be limited to the area where an occupant may pose a real threat to the efficient and safe execution of the search warrant.