Minn. Stat. § 521A.07
If a deceased user consented or a court directs disclosure of the content of an electronic communication of the user, the custodian shall disclose to the personal representative of the estate of the user the content of an electronic communication sent or received by the user if the representative gives the custodian:
(5) if requested by the custodian:
(iii) a finding by the court that:
(A) the user had a specific account with the custodian, identifiable by the information specified in item (i);
(B) disclosure of the content of electronic communications of the user would not violate United States Code, title 18, section 2701 et seq., as amended; United States Code, title 47, section 222, as amended; or other applicable law;
(C) unless the user provided direction using an online tool, the user consented to disclosure of the content of electronic communications; or
(D) disclosure of the content of electronic communications of the user is reasonably necessary for administration of the estate.