Current login user from modern sharepoint online page

%3CLINGO-SUB%20id%3D%22lingo-sub-1258422%22%20slang%3D%22en-US%22%3ECurrent%20login%20user%20from%20modern%20sharepoint%20online%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1258422%22%20slang%3D%22en-US%22%3E%3CP%3ECurrent%20login%20user%20from%20modern%20sharepoint%20online%20page%20%3F%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22ankit2823_0-1585296164096.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F179901i50D1933AC0103F6A%2Fimage-size%2Fmedium%3Fv%3D1.0%26amp%3Bpx%3D400%22%20title%3D%22ankit2823_0-1585296164096.png%22%20alt%3D%22ankit2823_0-1585296164096.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1258422%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDeveloper%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1260609%22%20slang%3D%22en-US%22%3ERe%3A%20Current%20login%20user%20from%20modern%20sharepoint%20online%20page%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1260609%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3EAs%20of%20now%20its%20not%20possible%20via%20out-of-box.%20Maybe%20you%20can%20add%20a%20script%20editor%20web%20part%2C%20add%20the%20code%20to%20replace%20the%20control%20with%20the%20current%20logged%20in%20the%20user%20info.%20Then%2C%20save%20the%20page%20as%20a%20template%20and%20then%20create%20a%20new%20page%20using%20that%20template.%3C%2FLINGO-BODY%3E
Highlighted
Deleted
Not applicable

Current login user from modern sharepoint online page ?

ankit2823_0-1585296164096.png

 

3 Replies
Highlighted
Hi,
As of now its not possible via out-of-box. Maybe you can add a script editor web part, add the code to replace the control with the current logged in the user info. Then, save the page as a template and then create a new page using that template.
Highlighted

I have added my script in code snipped webpart but it is not working. after re publishing page it shows only code.

there is no script editor webpart available on modern UI.

 
 

 

Highlighted