Click or drag to resize
Galactic API

SecurityPrincipal Class

Inheritance Hierarchy

Namespace:  Galactic.ActiveDirectory
Assembly:  Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class SecurityPrincipal : ActiveDirectoryObject, 
	IComparable<SecurityPrincipal>, IEqualityComparer<SecurityPrincipal>

The SecurityPrincipal type exposes the following members.

Constructors
  NameDescription
Public methodSecurityPrincipal(ActiveDirectory, SearchResultEntry)
Gets a security principal object from a supplied search result entry.
Public methodSecurityPrincipal(ActiveDirectory, Guid)
Gets a security principal object from Active Directory with the supplied GUID.
Top
Properties
  NameDescription
Public propertyCommonName
The Common Name (CN) of the object in Active Directory.
(Inherited from ActiveDirectoryObject.)
Public propertyCreateTimeStamp
The time the object was created in UTC.
(Inherited from ActiveDirectoryObject.)
Public propertyDescription
A description of the security principal.
Public propertyDistinguishedName
The Distinguished Name (DN) of the object in Active Directory.
(Inherited from ActiveDirectoryObject.)
Public propertyEMailAddress
The principal's e-mail address.
Public propertyEmailAddresses
A list of the principal's e-mail addresses.
Public propertyExchangeAlias
The principal's Microsoft Exchange Alias.
Public propertyGroups
The distinguished names of groups that this principal is a member of.
Public propertyGUID
The GUID of the object in Active Directory.
(Inherited from ActiveDirectoryObject.)
Public propertyIsGroup
Indicates if this principal is a Group.
Public propertyIsUser
Indicates if this principal is a User.
Public propertyOrganizationalUnit
The distinguished name of the organizational unit or parent object containing the object.
(Inherited from ActiveDirectoryObject.)
Public propertyPrimaryEmailAddress
The principal's primary e-mail address.
Public propertySAMAccountName
The principal's SAM Account Name.
Public propertySchemaClasses
The schema class types that identify the type of object this is in Active Directory. Examples: group, user, etc.
(Inherited from ActiveDirectoryObject.)
Public propertyTargetAddress
The principal's target e-mail address. Used by Exchange for routing e-mail to its final destination which may lie outside of the organization. Allows for an object to appear in the GAL even though its e-mail address may be outside of Exchange. Also used when routing e-mail to the Microsoft Office365 cloud from an on-premises Exchange server.
Public propertyUserPrincipalName
The User Principal Name of the principal.
Top
Methods
  NameDescription
Public methodAddProxyAddress
Adds a proxy e-mail address to the account's proxyAddresses field.
Public methodAddToGroup
Adds this principal to the supplied group.
Public methodCompareTo(ActiveDirectoryObject)
Compares this ActiveDirectoryObject to another ActiveDirectoryObject.
(Inherited from ActiveDirectoryObject.)
Public methodCompareTo(SecurityPrincipal)
Compares this SecurityPrincipal to another SecurityPrincipal.
Public methodDeleteAttribute
Deletes values from an attribute.
(Inherited from ActiveDirectoryObject.)
Public methodEquals(Object)
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodEquals(ActiveDirectoryObject, ActiveDirectoryObject)
Checks whether x and y are equal (using GUIDs).
(Inherited from ActiveDirectoryObject.)
Public methodEquals(SecurityPrincipal, SecurityPrincipal)
Checks whether x and y are equal (using GUIDs).
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetByteAttributeValue
Gets the first byte array value from the supplied attribute of the object.
(Inherited from ActiveDirectoryObject.)
Public methodGetByteAttributeValues
Gets all byte array values from the supplied attribute of the object.
(Inherited from ActiveDirectoryObject.)
Protected methodGetEntryFromAD(Guid)
Gets new data for the object from AD and places the values in the entry variable within the object.
(Inherited from ActiveDirectoryObject.)
Protected methodGetEntryFromAD(Guid, ListString)
Gets new data for the object from AD and places the values in the entry variable within the object.
(Inherited from ActiveDirectoryObject.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetHashCode(ActiveDirectoryObject)
Generates a hash code for the ActiveDirectoryObject supplied.
(Inherited from ActiveDirectoryObject.)
Public methodGetHashCode(SecurityPrincipal)
Generates a hash code for the SecurityPrincipal supplied.
Public methodGetIntervalAttributeValue
Gets the UTC DateTime from a Interval attribute.
(Inherited from ActiveDirectoryObject.)
Public methodGetStringAttributeValue
Gets the first string value from the supplied attribute of the object.
(Inherited from ActiveDirectoryObject.)
Public methodGetStringAttributeValues
Gets all string values from the supplied attribute of the object.
(Inherited from ActiveDirectoryObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodMemberOfGroup
Checks if this principal is a member of the supplied group.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveRename
Moves and / or renames this object.
(Overrides ActiveDirectoryObjectMoveRename(NullableGuid, String).)
Public methodRefresh
Refreshes the object to retrieve any changes made to attributes since creation.
(Inherited from ActiveDirectoryObject.)
Public methodRemoveFromGroup
Removes this principal from the supplied group.
Public methodRemoveProxyAddress
Removes a proxy e-mail address from the account's proxyAddresses field.
Public methodSetAttribute
Sets attribute of an object. If a null or empty values object is supplied no modifications will be made.
(Inherited from ActiveDirectoryObject.)
Public methodSetPrimaryProxyAddress
Sets the supplied e-mail address to be the primary e-mail address for receiving mail. Note: This e-mail address must already be associated with the account. If there is account currently has a primary e-mail address, it will be set as a secondary.
Public methodSetStringAttribute
Sets a single value string attribute of an object. If a null or empty value is supplied, the attribute will be cleared / deleted.
(Inherited from ActiveDirectoryObject.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Protected fieldAD (Inherited from ActiveDirectoryObject.)
Protected fieldAdditionalAttributes (Inherited from ActiveDirectoryObject.)
Protected fieldStatic memberAttributeNames
The list of specific attributes that should be retrieved when searching for the entry in AD. The attributes of parent objects should be included as well.
Protected fieldAttributes (Inherited from ActiveDirectoryObject.)
Protected fieldEntry (Inherited from ActiveDirectoryObject.)
Protected fieldJAN_01_1601 (Inherited from ActiveDirectoryObject.)
Top
See Also