Export (0) Print
Expand All

ActivateAccount

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.

Activates a Live Meeting account.

public Status ActivateAccount(string windowsId)

windowsId

Specifies the user's Windows identity that is to be activated.

Status

Meaning

HasAccount_NotEntitled

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

NoAccount_Entitled

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

NoAccount_NotEntitled

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

NotInDirectory

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

Success

The account was activated.

Unauthorized

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

WebMethodCallsDisabled

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

The ActivateAccount 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 activated.

  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 or is not entitled to have an account, it returns NoAccount_Entitled, NoAccount_NotEntitled, or HasAccount_NotEntitled as appropriate.

    • Calls the ModifyUser XML API and deletes the expireTime account attribute. This activates the account.

    • Returns Success if the ModifyUser 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.ActivateAccount(windowsId);
if (outcome == Status.Success)
{
   Console.WriteLine("Account activated for user " + windowsId);
}
else
{
   Console.WriteLine("Account not activated for user " + windowsId +
                     " due to error " + outcome);
}
Show:
© 2014 Microsoft