infoRouter Document Management System - Web Services API Documentation Version 7.0
RemoveUserFromDomainMembership
Removes the specified user from the domain.
Syntax
[Visual Basic]
Public Shared Function RemoveUserFromDomainMembership(ByVal AuthenticationTicket As String, _
ByVal DomainName As String, _
Byval Username as string _
) as xmldocument
Parameters

AuthenticationTicket

infoRouter Authentication Ticket

DomainName

The name of the domain to remove user from membership

UserName

The username of the user to be removed


Return Value
returns xml fragment.
<response success="true" error="">
if success = "true", the user has been removed from domain membership.
if success = "false", the error attribute returns the error description.
Remarks
The caller must be the system administrator or the domain manager or the specified domain.
Example
    Public Sub RemoveUserFromDomainMembership()

Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxxxxxxx"
Const IR_DomainName As String = "Accounting"
Const IR_UserName As String = "JoeD"

Dim IR_Obj As InfoRouter.srv
Dim xmlResponse As System.Xml.XmlElement
Try

IR_Obj = New InfoRouter.srv
xmlResponse = IR_Obj.RemoveUserFromDomainMembership(IRAuthenticationTicket, _
IR_DomainName, _
IR_UserName)

If xmlResponse.GetAttribute("success") = "true" Then
Console.WriteLine("The user removed from the domain memberships")
Else
Console.WriteLine("The User cannot be removed from the domain memberships.")
Console.WriteLine("server response:" & xmlResponse.GetAttribute("error"))
End If
xmlResponse = Nothing

Catch ex As Exception
Console.WriteLine("error:" & ex.Message)
Finally
IR_Obj = Nothing
End Try
End Sub
See Also
AddUserAsDomainMember
Web Services API Syntax based on infoRouter Document Management System Version 7.0
Copyright() 1998-2008 Active Innovations, Inc.
infoRouter DMS