| 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
)
Public Shared Function Create (
ad As ActiveDirectory,
sAMAccountName As String,
ouDn As String,
type As UInteger,
Optional additionalAttributes As List(Of DirectoryAttribute) = Nothing
) As Group
public:
static Group^ Create(
ActiveDirectory^ ad,
String^ sAMAccountName,
String^ ouDn,
unsigned int type,
List<DirectoryAttribute^>^ additionalAttributes = nullptr
)
static member Create :
ad : ActiveDirectory *
sAMAccountName : string *
ouDn : string *
type : uint32 *
?additionalAttributes : List<DirectoryAttribute>
(* Defaults:
let _additionalAttributes = defaultArg additionalAttributes null
*)
-> Group
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:
GroupThe newly created group object.
See Also