EX-23.2 5 ea022389302ex23-2_oneok.htm CONSENT OF ERNST & YOUNG LLP, INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM FOR MAGELLAN MIDSTREAM PARTNERS, L.P

Exhibit 23.2

Consent of Independent Registered Public Accounting Firm

We consent to the reference of our firm under the caption “Experts” and to the use of our reports dated February 21, 2023, with respect to the consolidated financial statements of Magellan Midstream Partners, L.P. incorporated by reference in Amendment No. 1 to the Registration Statement (Form S-4) of ONEOK, Inc.

/s/ Ernst & Young LLP

Tulsa, Oklahoma

December 26, 2024