Jul 15 2022
Hi, I am trying to add the users name like
How can I do this ?
Thanks for your help!
Jul 16 2022
@tifanny034 Do you want to add name of user on all SharePoint pages or single page?
I have previously achieved this using Script editor web part for modern pages developed by @Mikael Svenson using SPFx. Here's the configuration of web part:
document.getElementById("pWelcomeMsg").innerHTML = "Hey " + _spPageContextInfo.userDisplayName + ", welcome to our site";
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.