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

AuthenticationTicket

infoRouter Authentication Ticket

DomainName

The Name of the domain that the usergroup to be removed

GroupName

The Name of the usergroup be removed

Return Value
returns xml fragment.
<response success="true" error="">
if success = "true", the usergroup 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 of the specified domain.
Example
Public Sub RemoveUserGroupFromDomainMembership()
Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxx"
Const IR_DomainName As String = "Accounting"
Const IR_UserGroupName As String = "Employees"

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

IR_Obj = New InfoRouter.srv
xmlResponse = IR_Obj.RemoveUserGroupFromDomainMembership( _
IRAuthenticationTicket, _
IR_DomainName, _
IR_UserGroupName)
If xmlResponse.GetAttribute("success") = "true" Then
Console.WriteLine("The user group removed from the domain memberships")
Else
Console.WriteLine("The User group 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
AddUserGroupAsDomainMember | AddUserAsDomainMember | RemoveUserFromDomainMemberShip
Syntax based on infoRouter Document Management System Web Services API Version 7.0
Copyright() 1998-2003 Active Innovations, Inc.
infoRouter Document Management System