User Class

The User class represents a user in Microsoft Office SharePoint Portal Server 2003.

System.Object

Microsoft.SharePoint.Portal.Security.User

Public Properties

The following table shows the properties of the User class, the data type of each property, and a brief description of each.

Name Data type Description
Email String Gets the e-mail address of the user.
ID Int32 Gets the member ID for the user.
IsDomainGroup Boolean Gets a Boolean value that indicates whether the user is a domain group.
IsSiteAdmin Boolean Gets a Boolean value that specifies whether the user is a member of the Site Administrators group.
LoginName String Gets the login name of the user.
Name String Gets the display name of the user.
Notes String Gets notes for the user.
Sid String Gets the unique security identifier (SID) for the network account of the user.
Xml String Gets the XML representation of the User object.

Example

The following code example shows how you can use the User object's Email property to print the e-mail addresses of the users in the PermissionCollection object for a portal site.

Thread Safety

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

Requirements

Namespace: Microsoft.SharePoint.Portal.Security

Platforms: Microsoft Windows Server 2003

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

Security: Code Access Security