Share via


SPUser.IsSiteAdmin property

Gets or sets a Boolean value that specifies whether the user is a site collection administrator.

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

Syntax

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

value = instance.IsSiteAdmin

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

Property value

Type: System.Boolean
true if the user is a site collection administrator; otherwise, false.

See also

Reference

SPUser class

SPUser members

Microsoft.SharePoint namespace