Share via


SPUser.AllowBrowseUserInfo Property

Gets or sets a value that indicates whether the user can obtain information about the Web site’s users.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Property AllowBrowseUserInfo As Boolean
    Get
    Set
'Usage
Dim instance As SPUser
Dim value As Boolean

value = instance.AllowBrowseUserInfo

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

Property Value

Type: System.Boolean
true if the SPUser object is allowed to access the user information; otherwise false.

Remarks

The AllowBrowseUserInfo property can be true only if the IsApplicationPrincipal property is true.

Unless the application needs to access user information, we recommend that AllowBrowseUserInfo be set to false. This ensures that the application cannot access user information even if its permission assignments would otherwise allow it to have such access.

See Also

Reference

SPUser Class

SPUser Members

Microsoft.SharePoint Namespace