Share via


Hosted CDI::ModifyUser

The ModifyUser method modifies the CDI settings for a specified CDI user.

Arguments

Input argument Description

<path>

The LDAP path of the user in the Service Provider domain.

<preferredDomainController>

The name of the preferred domain controller in the Service Provider domain.

<remoteUserPrincipalName>

The UPN of the remote user.

Remarks

Method Syntax

The ModifyUser method has the following syntax:

 
public string ModifyUser( 
string path,  
string preferredDomainController,  
string remoteUserPrincipalName, 
bool sendCredentials) 
 

Sample Code

Example XML Request

No example XML request.

Example XML Response

No example XML response.

Typical C# Usage

 
//Get user name and password. 
string userName = this.Request.ServerVariables.Get("AUTH_USER"); 
string pass = this.Request.ServerVariables.Get("AUTH_PASSWORD"); 
//Set credentials. 
HostedCDI.PreAuthenticate = true; 
HostedCDI.Credentials = new NetworkCredential(userName,pass); 
lblMsg.InnerHtml = mpsResponseHeaderLabel; 
//Display response. 
this.mpsResponse.DocumentSource = ""; 
response = HostedCDI.ModifyUser(path, preferredDomainController, remoteUserPrincipalName, sendCredentials); 
// set the response XML to match the return from MPF 
responseXml.LoadXml(response); 
this.mpsResponse.Document = responseXml; 
lblDone.InnerText = successMsg;<To be supplied> 
 

Applies To

Web Services API for:

  • Hosted Messaging and Collaboration version 4.0

  • Hosted Messaging and Collaboration version 3.5

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

Hosted CDI::EnableUser
Hosted CDI::DisableUser
Hosted CDI::GetUserSettings