Delete User

WCF


Method
public AuthServerResponse DeleteUser(string authServerPartnerLoginName, 
                 string authServerPartnerLoginPassword, 
                 string authServerPartnerUserLoginName,
                 bool removeRelated)

WCF parameterdata typedescription
authServerPartnerLoginNamestringSurePassID account login name
authServerPartnerLoginPasswordstringSurePassID account login key
authServerPartnerUserLoginNamestringUser account login name
removeRelatedboolIn addition to deleting the user al other references to the user such as audit trail will be removed from the system.
Sample WCF C# Method
AuthServerResponse  resp = DeleteUser("accountLogin",             
            "accountKey", 
            "Mandy", 
             false
            );
Sample WCF C# Repsonse
 if (resp.ErrorCode != 0)  {      
       message.Text = resp.ErrorMsg;
       return false;
 }


REST


REST parameterdata typedescription
spAccountLoginNamestringSurePassID account login name
spAccountLoginKeystringSurePassID account login key
usernamestringuser account login name
typestringdelete_user
removeRelatedboolIn addition to deleting the user,  all other references to the user such as audit trail will be removed from the system.
Sample REST/Json Method
 {  
  "username": "Mandy",
  "spAccountLoginName": "accountLogin",
  "spAccountLoginKey": "accountKey",
  "removeRelated": "false",
  "type": "delete_user",


}
Sample REST/Json Response
 {
  "errorCode": 0,
  "errorMessage": "OK",
  "type": "delete_user"
}