MPS Import::EnableUserForHosting

This procedureensures user is secured and configured for hosting. This procedure attempts to prepare a user for hosting by doing the following:

Text here.

Prerequisites

The user must be located in an OU container that is compliant with the hosting prescription. If the OU was created or processed with any of the following, then it is valid:

Security

Impersonate caller.

Required Input
Procedure Steps
  1. Managed Active Directory::GetThisOrganizationRoot - get the root organization for user being enabled.
  2. Managed Hosting::GetOrgType - retrieves the OWK for the organization type (e.g. hosting, reseller, customer, or default). This is used to set the policyName if a policyName is not provided by the caller.
  3. Managed Active Directory::EnableUser - user object is renamed to match.
  4. Managed Active Directory::RenameUser - user object is renamed to match standard of UPN = commonName.
  5. Managed Active Directory::GetPolicy - get the policy structure for the user.
  6. Managed Active Directory::SetGroupMemberships_ (conditional) - if customerTypeName = BusinessUser.
  7. Managed Active Directory::RemoveAllAuthenticatedUsersACEs_.
Typical Usage
<request>
  <procedure>
	<execute namespace="MPS Import" procedure="EnableUserForHosting" impersonate="1">
	<executeData>
		<path>LDAP://CN=jimc,OU=alpineskihouse,OU=consolidatedmessenger,OU=Hosting,DC=fabrikam,DC=Com</path>
		<userPrincipalName>jimc@alpineskihouse.com</userPrincipalName>
		<customerTypeName>BusinessUser</customerTypeName>
		<preferredDomainController>AD01.fabrikam.Com</preferredDomainController>
	</executeData>
	<after source="executeData" sourcePath="user" destination="data"/>
	</execute>
  </procedure>
</request>

Typical Response

Shown for format only; content may vary.

<response>
  <data>
	<path>LDAP://CN=user@MPSImportOrg01.com,OU=MPSImportOrg01,OU=MPSImportRes01,OU=Hosting,DC=fabrikam,DC=Com</path>
	<userPrincipalName>user@MPSImportOrg01.com</userPrincipalName>
	<preferredDomainController>AD01-Wh.fabrikam.Com</preferredDomainController>
	<policyName>customer</policyName>
	<user path="LDAP://cn=user@MPSImportOrg01.com,OU=MPSImportOrg01,OU=MPSImportRes01,OU=Hosting,DC=fabrikam,DC=com"
		name="user@MPSImportOrg01.com">

	<memberOfGroup name="LDAP://cn=AllUsers@MPSImportOrg01,cn=_Private,OU=MPSImportOrg01,OU=MPSImportRes01,OU=Hosting,DC=fabrikam,DC=com"/>
	</user>
  </data>
</response>

 Applies To