This project has moved and is read-only. For the latest updates, please go here.

How to get current user info

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

Dec 11, 2014 at 6: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>