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

SP.Web Class

Remarks

It must not be null.

See Also

Reference

SP.Web Methods

SP.Web Properties

SP Namespace