SP.UserCollection.getByLoginName(loginName) Method

Applies to: SharePoint Foundation 2010

In this article
Return Value
Remarks
Applies To

Gets the user with the specified login name.

var value = SP.UserCollection.getByLoginName(loginName);

Parameters

loginName

Type: string

The login name of the user.

Return Value

Type: SP.User

The user with the specified login name.

Remarks

The value of the loginName parameter cannot be null , empty, or greater than 251 characters in length.

Applies To

SP.UserCollection Class

See Also

Reference

SP.UserCollection Methods

SP.UserCollection Properties

SP Namespace