Use a Profile Display part on the page or template with the merge field of "ID" being displayed only.
The merge field "ID" pulls directly from RE as the constituent's ID number.

Image of ID field being used in Netcommunity Profile Display part.