| UserCreate Method |
Creates a new user 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 User Create(
ActiveDirectory ad,
string sAMAccountName,
string ouDn,
List<DirectoryAttribute> additionalAttributes = null
)
Public Shared Function Create (
ad As ActiveDirectory,
sAMAccountName As String,
ouDn As String,
Optional additionalAttributes As List(Of DirectoryAttribute) = Nothing
) As User
public:
static User^ Create(
ActiveDirectory^ ad,
String^ sAMAccountName,
String^ ouDn,
List<DirectoryAttribute^>^ additionalAttributes = nullptr
)
static member Create :
ad : ActiveDirectory *
sAMAccountName : string *
ouDn : string *
?additionalAttributes : List<DirectoryAttribute>
(* Defaults:
let _additionalAttributes = defaultArg additionalAttributes null
*)
-> User
Parameters
- ad
- Type: Galactic.ActiveDirectoryActiveDirectory
An Active Directory object used to create the user. - sAMAccountName
- Type: SystemString
The proposed SAM Account name for the user. - ouDn
- Type: SystemString
The distinguished name for the OU to place the user within. - additionalAttributes (Optional)
- Type: System.Collections.GenericListDirectoryAttribute
Optional: Additional attribute values to set when creating the user.
Return Value
Type:
UserThe newly created user object.
See Also