Managed Active Directory::CreateUser
The CreateUser method creates a user in Active Directory directory service and sets the initial properties.
Arguments
The CreateUser method accepts the following input parameters.
Input arguments | Required | Description |
---|---|---|
Container |
No |
The lightweight directory access protocol (LDAP) path to the container in which to place the user. |
UserPrincipalName |
No |
The User Principal Name (UPN). |
policyName |
No |
Policy name (defaults to "default"). |
SamAccountName |
No |
The logon name used to support clients and servers running older versions of the operating system, such as Microsoft Windows NT 4.0, Windows 95, Windows 98, and LAN Manager. This attribute must be longer than 20 characters to support older clients. |
DisplayName |
No |
The user display name. |
GivenName |
No |
The user first name. |
MiddleName |
No |
The user middle name. |
Sn |
No |
The user last name. |
Initials |
No |
The user initials. |
Description |
No |
The General Description property. |
PropertyXml |
No |
A group of XML properties in the following format:
|
PreferredDomainController |
No |
The domain controller to use for this operation. |
SendCredentials |
No |
True/False: embed basic authentication credentials in the MPF request. |
ErrorReturn |
No |
Out parameter containing the error (if any) thrown by Microsoft Provisioning Framework (MPF) during the processing of the request. |
Output Arguments
The CreateUser method returns the LDAP path to the newly created user.
Remarks
No remarks.
Sample Code
No sample code.
Applies To
Managed Active Directory Web Service for:
Hosted Messaging and Collaboration version 4.0
Hosted Messaging and Collaboration version 3.5
Hosted Messaging and Collaboration version 3.0
Windows-based Hosting version 4.5
Windows-based Hosting version 4.0
Windows-based Hosting version 3.5
Windows-based Hosting for Applications version 1.0
See also
Tasks
Managed Active Directory::DeleteUser
Managed Active Directory::DisableUser
Managed Active Directory::EnableUser
Managed Active Directory::ModifyUser
Managed Active Directory::RenameUser