Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
DeleteAccount

DeleteAccount

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Deletes the Live Meeting account.

public Status DeleteAccount(string windowsId)

windowsId

Specifies the Windows identity of the user to be deleted.

Status

Meaning

NoAccount_Entitled

The account was not deleted because the Live Meeting account for the user was not found.

NoAccount_NotEntitled

The account was not deleted because the Live Meeting account for the user was not found.

NotInDirectory

The account was not deleted. See the section Web Method Call Return Values above for details.

Success

The account is deleted.

Unauthorized

The account was not deleted. See the section Web Method Call Return Values above for details.

WebMethodCallsDisabled

The account was not deleted. See the section Web Method Call Return Values above for details.

The DeleteAccount Web method works as follows:

  1. The caller invokes the Web method specifying the Windows identity of the user for whom the Live Meeting account is to be deleted.

  2. IIS authenticates the caller using integrated Windows authentication.

  3. The Portal does the following:

    • Verifies that Web method calls are enabled. If not, it returns WebMethodCallsDisabled.

    • Verifies that the caller is a member of a Windows security group listed in Web Method Callers. If not, it returns Unauthorized.

    • Calls Active Directory to retrieve the attributes for the user whose windowsId was specified in the call. If the user cannot be found in Active Directory, it returns NotInDirectory.

    • Calls the Live Meeting GetUser XML API to retrieve the user's Live Meeting account information. If the user does not have an account, it returns NoAccount_Entitled or NoAccount_NotEntitled as appropriate.

    • Calls the DeleteUser XML API to delete the account.

    • Returns Success if the DeleteUser XML API call is successful; otherwise, it returns the XML API error to the caller.

LMWebService lmWebService = new LMWebService();
lmWebService.Url = "https://localhost/LMPortal/LMWebService.asmx";
lmWebService.Credentials = CredentialCache.DefaultCredentials;

string windowsId = @"contoso\bill";
Status outcome = lmWebService.DeleteAccount(windowsId);
if (outcome == Status.Success)
{
   Console.WriteLine("Account deleted for user " + windowsId);
}
else
{
   Console.WriteLine("Account not deleted for user " + windowsId +
                     " due to error " + outcome);
}
Show:
© 2015 Microsoft