Share via


SPPrincipal Class

Represents a user or group that can be assigned permissions in Windows SharePoint Services to control security.

Inheritance Hierarchy

System.Object
  Microsoft.SharePoint.SPMember
    Microsoft.SharePoint.SPPrincipal
      Microsoft.SharePoint.SPGroup
      Microsoft.SharePoint.SPUser

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

Syntax

<SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel := True)> _
<SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel := True)> _
Public MustInherit Class SPPrincipal _
    Inherits SPMember

Dim instance As SPPrincipal
[SharePointPermissionAttribute(SecurityAction.LinkDemand, ObjectModel = true)]
[SharePointPermissionAttribute(SecurityAction.InheritanceDemand, ObjectModel = true)]
public abstract class SPPrincipal : SPMember

Remarks

When a user or group is added to a site, the user or group is the principal. The SPPrincipal object can represent one of the following types of users or groups:

  • Windows user

  • Windows group

  • Non-Windows user (provided through ASP.NET membership provider)

  • Non-Windows group (provided through ASP.NET roles provider)

  • SharePoint groups

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

SPPrincipal Members

Microsoft.SharePoint Namespace