SPPeoplePickerSettings.AllowLocalAccount property

Gets or sets whether the People Picker control should resolve local accounts.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property AllowLocalAccount As Boolean
    Get
    Set
'Usage
Dim instance As SPPeoplePickerSettings
Dim value As Boolean

value = instance.AllowLocalAccount

instance.AllowLocalAccount = value
public bool AllowLocalAccount { get; set; }

Property value

Type: System.Boolean
true if the People Picker is allowed to resolve local accounts; otherwise, false.

Remarks

The full login name of a local account is ComputerName\UserName. When this property is true, the People Picker control user interface displays the name of the web server.

When SharePoint Foundation is installed on a computer that is not joined to a domain, the administrator should set this property to true.

See also

Reference

SPPeoplePickerSettings class

SPPeoplePickerSettings members

Microsoft.SharePoint.Administration namespace