Create a snippet having a DataView with DS_Account_Get (see image) as source and add this snippet to Layout of your page.
To get the user’s photo, it of course needs to be available in your application as an image usually 1-1 related to the Account.
Couple of ways to do this, check out this previous forum post with screenshots: https://forum.mendix.com/link/questions/88292
If you want to add this in a navigation layout, you will have to create a snippet. See: https://forum.mendix.com/link/questions/9078