Export (0) Print
Expand All

SP.Web.ensureUser(logonName) Method

SharePoint 2010

Last modified: May 27, 2011

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Adds the user with the specified login name to the website.

var value = SP.Web.ensureUser(logonName);

logonName

Type: string

The login name of the user.

Type: SP.User

The user with the specified login name.

This method does not add a user with the specified login name to the website if that user is already on the website.

Show:
© 2015 Microsoft