Click or drag to resize
Galactic API

GroupCreate Method

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.

Namespace:  Galactic.ActiveDirectory
Assembly:  Galactic.ActiveDirectory (in Galactic.ActiveDirectory.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public static Group Create(
	ActiveDirectory ad,
	string sAMAccountName,
	string ouDn,
	uint type,
	List<DirectoryAttribute> additionalAttributes = null
)

Parameters

ad
Type: Galactic.ActiveDirectoryActiveDirectory
An Active Directory object used to create the group.
sAMAccountName
Type: SystemString
The proposed SAM Account name for the group.
ouDn
Type: SystemString
The distinguished name for the OU to place the group within.
type
Type: SystemUInt32
A uint from the ActiveDirectory.GroupType enum representing the type of group to create.
additionalAttributes (Optional)
Type: System.Collections.GenericListDirectoryAttribute
Optional: Additional attributes to set when creating the group.

Return Value

Type: Group
The newly created group object.
See Also