Current login user from modern sharepoint online page

Deleted
Not applicable

Current login user from modern sharepoint online page ?

ankit2823_0-1585296164096.png

 

3 Replies
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.

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.