Quick search by citation:

38 U.S. Code § 511 - Decisions of the Secretary; finality

The Secretary shall decide all questions of law and fact necessary to a decision by the Secretary under a law that affects the provision of benefits by the Secretary to veterans or the dependents or survivors of veterans. Subject to subsection (b), the decision of the Secretary as to any such question shall be final and conclusive and may not be reviewed by any other official or by any court, whether by an action in the nature of mandamus or otherwise.
(b) The second sentence of subsection (a) does not apply to—
matters subject to section 502 of this title;
matters covered by sections 1975 and 1984 of this title;
matters arising under chapter 37 of this title; and
matters covered by chapter 72 of this title.
Editorial Notes
Prior Provisions

Prior section 511 was renumbered section 1511 of this title.

Provisions similar to those in this section were contained in section 211(a) of this title prior to repeal by Pub. L. 102–83, § 2(a).

Court Rules
Federal Rules of Civil Procedure

Writ of mandamus abolished in United States district courts, but relief available by appropriate action or motion, see rule 81, Title 28, Appendix, Judiciary and Judicial Procedure.