How to show current user name on layout

Hi All , I want to show current user name. So I created one snippet in that added dataview and through microflow I retriave current object and return the current object. And called the same snippet in topbar layout but its giving me below error. Cannot add dataview on layout its not allowing me add. Help me to resolve it.
1 answers

Hello Priyanka,


Please remove the parameters (if any) for the snippet.


Hope that resolves the issue.