Display User ID instead of Name or Username

You may get more help on this question by asking the Buddypress community directly on their Support forum here.

It looks like you will need to create new copies of the template files that drive these two pages and place them in your Theme folder. These will override the plugin code completely and put you in control of the content. This is important because if you edit the plugin code directly, it may revert to its original state when the plugin updates in future.

The link below describes how to create files in your Theme to override the standard Buddypress designs but you will need to research further as it doesn’t answer every question.

Buddypress template hierarchy

Hopefully someone on Buddypress’ forum will help you get there!