Henry Wright replied to the topic Username in the forum How-to & Troubleshooting 9 years ago
Hi @arzuman26
Try:
echo bp_core_get_user_displayname( bp_displayed_user_id() );