How to get current user info

Dec 9, 2014 at 7:40 PM
Hello, there is some operation to get the logged user id or name ?
Coordinator
Dec 9, 2014 at 7:49 PM
Take a look at SPGetCurrentUser.

M.
Dec 11, 2014 at 5:12 PM
Another trick I have used in the past, to get the current logged users Domain\ID, for display use, is using the following SharePoint token (LogonUser) in the source code of a Content Editor Webpart:
<div id="LoggedInAs">&nbsp;&nbsp; You are logged in as _LogonUser_</div>