EX-23.2 5 fs42023ex23-2_oneokinc.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 to 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 this Registration Statement (Form S-4) and related Prospectus of ONEOK, Inc.

/s/ Ernst & Young LLP

Tulsa, Oklahoma

June 20, 2023