I want to show user profile rather than display name on top bar of SharePoint (Suite Bar) currently it is displaying the display name of the user. Please see screenshot below.

Image showing the problem


you can do it with jquery and _spPageContextInfo.

[UserLoginName]= _spPageContextInfo.userLoginName

HTML image source "/_layouts/15/userphoto.aspx?size=M&accountname=[UserLoginName]"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.