SP.Web.currentUser Property
Applies to: SharePoint Foundation 2010
In this article
Property Value
Applies To
Remarks
Gets the current user of the site.
var value = SP.Web.get_currentUser();
Property Value
Type: SP.User
Applies To
Remarks
It must not be null.