Share via


SPUser.IsHiddenInUI property

Gets a value that indicates whether this user should be hidden in the UI.

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

Syntax

'Declaration
Public Overrides ReadOnly Property IsHiddenInUI As Boolean
    Get
'Usage
Dim instance As SPUser
Dim value As Boolean

value = instance.IsHiddenInUI
public override bool IsHiddenInUI { get; }

Property value

Type: System.Boolean
true if this instance represents a user that should be hidden in the UI; otherwise, false.

Remarks

Such users are not hidden across all SharePoint UI, but can optionally be hidden to improve the user experience. For example, this value will be true if the user was added to the role assignments for an item due to the creation of an anonymous link. Users with this property set to true are typically hidden from sharing-related UI, such as the Share dialog in document libraries.

See also

Reference

SPUser class

SPUser members

Microsoft.SharePoint namespace