SPUser properties

The SPUser type exposes the following members.

Properties

  Name Description
Public property Alerts Gets the collection of alerts the user has created.
Public property AllowBrowseUserInfo Gets or sets a value that indicates whether the user can obtain information about the Web site’s users.
Public property Email Gets or sets the e-mail address of the user. (Read-only in sandboxed solutions.)
Public property Groups Gets the collection of groups of which the user is a member.
Public property ID Gets the member ID for the user. (Overrides SPPrincipal.ID.)
Public property IsApplicationPrincipal Gets a value that indicates whether the SPUser object represents an application principal.
Public property IsDomainGroup Gets a Boolean value that indicates whether the user is a domain group.
Public property IsHiddenInUI Gets a value that indicates whether this user should be hidden in the UI. (Overrides SPPrincipal.IsHiddenInUI.)
Public property IsShareByEmailGuestUser Gets a value that indicates whether this user is shared by email guest user.
Public property IsSiteAdmin Gets or sets a Boolean value that specifies whether the user is a site collection administrator.
Public property IsSiteAuditor Gets a Boolean value that indicates whether the user is a site collection auditor.
Public property IsUserSettingsSyncedWithProvider Gets a value that indicates whether User Settings has been synced with External Settings Provider.
Public property LanguageSettings Gets the SPLanguageSettings object that represents the user's language preferences.
Public property LoginName Gets the user name of the user. (Overrides SPPrincipal.LoginName.)
Public property Name Gets or sets the display name of the user. (Overrides SPPrincipal.Name.)
Public property Notes Gets or sets notes for the user.
Public property OwnedGroups Gets the collection of groups that the user owns.
Public property ParentWeb Gets the parent Web site for the principal. (Inherited from SPPrincipal.)
Public property RawSid Gets the system ID of the user in binary format.
Public property RegionalSettings Gets or sets the regional settings associated with the user.
Public property RequireRequestToken Gets or sets a value that indicates whether the SPUser object requires a request token.
Public property Roles Obsolete. Gets the collection of roles associated with the principal. (Inherited from SPPrincipal.)
Public property Sid Gets the unique security ID for the network account of the user.
Public property SystemUserKey Gets the configuration-specific user key.
Public property UserId Gets the information of the user that contains the user's name identifier and the issuer of the user's name identifier.
Public property UserToken Gets the user token that identifies the authentication process applied to the user.
Public property Xml Gets the XML representation of the user.

Top

See also

Reference

SPUser class

Microsoft.SharePoint namespace