Managed Active Directory::RenameOrganization
The RenameOrganization method renames an organization.
Arguments
Input Arguments | Required | Description |
---|---|---|
<org> |
Yes |
The Lightweight Directory Access Protocol (LDAP) path of the organizational to be renamed |
<newName> |
Yes |
The new name for the organization |
<preferredDomainController> |
No |
The domain controller to be used for this request |
Remarks
Security
- Impersonate caller.
Sample Code
Example XML Request
<request>
<procedure>
<execute namespace="Managed Active Directory" procedure="RenameOrganization" impersonate="1">
<executeData>
<org>LDAP://OU=Reseller1,OU=Hosting,DC=contoso,DC=com</org>
<newName>Reseller1NewName</newName>
<preferredDomainController>myPrimaryDC.contoso.com
</preferredDomainController>
</executeData>
<after source="executeData" sourcePath="path" destination="data" mode="insert" />
</execute>
</procedure>
</request>
Example XML Response
<response>
<data>
<path>LDAP://ou=Reseller1NewName,OU=Hosting,DC=contoso,DC=com</path>
</data>
</response>
Applies To
Managed Active Directory Namespace APIManaged Active Directory Namespace API for:
Hosted Messaging and Collaboration version 4.5
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::CreateOrganization
Managed Active Directory::DeleteOrganization
Managed Active Directory::ModifyOrganization