Click or drag to resize
Galactic API

Group Class

Group is a class that allows for the query and manipulation of Active Directory group objects.
Inheritance Hierarchy

Namespace:  Galactic.ActiveDirectory
Assembly:  Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public class Group : SecurityPrincipal, IEnumerable<SecurityPrincipal>, 
	IEnumerable

The Group type exposes the following members.

Constructors
  NameDescription
Public methodGroup(ActiveDirectory, SearchResultEntry)
Gets a group object from a supplied search result entry.
Public methodGroup(ActiveDirectory, Guid)
Gets a group object from Active Directory with the supplied GUID.
Top
Properties
  NameDescription
Public propertyAllUserMembers
Does a recursive lookup to find all users that are a member of this group by way of subgroup membership.
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.
(Inherited from SecurityPrincipal.)
Public propertyDistinguishedName
The Distinguished Name (DN) of the object in Active Directory.
(Inherited from ActiveDirectoryObject.)
Public propertyEMailAddress
The principal's e-mail address.
(Inherited from SecurityPrincipal.)
Public propertyEmailAddresses
A list of the principal's e-mail addresses.
(Inherited from SecurityPrincipal.)
Public propertyExchangeAlias
The principal's Microsoft Exchange Alias.
(Inherited from SecurityPrincipal.)
Public propertyGroupMembers
Groups that are members of the group.
Public propertyGroups
The distinguished names of groups that this principal is a member of.
(Inherited from SecurityPrincipal.)
Public propertyGUID
The GUID of the object in Active Directory.
(Inherited from ActiveDirectoryObject.)
Public propertyIsGroup
Indicates if this principal is a Group.
(Inherited from SecurityPrincipal.)
Public propertyIsUser
Indicates if this principal is a User.
(Inherited from SecurityPrincipal.)
Public propertyMembers
The members of the group.
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.
(Inherited from SecurityPrincipal.)
Public propertySAMAccountName
The principal's SAM Account Name.
(Inherited from SecurityPrincipal.)
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.
(Inherited from SecurityPrincipal.)
Public propertyUserMembers
Users who are members of the group.
Public propertyUserPrincipalName
The User Principal Name of the principal.
(Inherited from SecurityPrincipal.)
Top
Methods
  NameDescription
Public methodAddMembers
Adds security principals to the group.
Public methodAddProxyAddress
Adds a proxy e-mail address to the account's proxyAddresses field.
(Inherited from SecurityPrincipal.)
Public methodAddToGroup
Adds this principal to the supplied group.
(Inherited from SecurityPrincipal.)
Public methodClearMembership
Clears all members from this group.
Public methodCompareTo(ActiveDirectoryObject)
Compares this ActiveDirectoryObject to another ActiveDirectoryObject.
(Inherited from ActiveDirectoryObject.)
Public methodCompareTo(Group)
Compares this Group to another Group.
Public methodCompareTo(SecurityPrincipal)
Compares this SecurityPrincipal to another SecurityPrincipal.
(Inherited from SecurityPrincipal.)
Public methodStatic memberCreate
Creates a new group within Active Directory given it's proposed name, the distinguished name of the OU to place it in, and other optional attributes.
Public methodStatic memberDelete
Deletes a group from Active Directory.
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(Group, Group)
Checks whether x and y are equal (using GUIDs).
Public methodEquals(SecurityPrincipal, SecurityPrincipal)
Checks whether x and y are equal (using GUIDs).
(Inherited from SecurityPrincipal.)
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 methodGetEnumerator
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(Group)
Generates a hash code for the Group supplied.
Public methodGetHashCode(SecurityPrincipal)
Generates a hash code for the SecurityPrincipal supplied.
(Inherited from SecurityPrincipal.)
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.
(Inherited from SecurityPrincipal.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveRename
Moves and / or renames this object.
(Inherited from SecurityPrincipal.)
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.
(Inherited from SecurityPrincipal.)
Public methodRemoveMember
Removes a security principal from the group.
Public methodRemoveMembers
Removes security principals from the group.
Public methodRemoveProxyAddress
Removes a proxy e-mail address from the account's proxyAddresses field.
(Inherited from SecurityPrincipal.)
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.
(Inherited from SecurityPrincipal.)
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