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

AuthenticationTicket

infoRouter Authentication Ticket

PWD

infoRouter Login user password

DomainName

The DomainName of the usergroup if it is local.

GroupName

The name of the usergroup

UserName

The UserName of the User to be removed


Return Value
returns xml fragment.
<response success="true" error="">
if success attribute "true", the user has been removed from usergroup.
if success attribute "false", the error attribute returns the error description.
Remarks
The caller must be the system administrator or the domain manager of the local usergroup.
Example
Public Sub RemoveUsergroupMember()
Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxxxxxx"
Const IR_DomainName As String = "Knowledge Base"
Const IR_UserGroup As String = "Authors"
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.RemoveUsergroupMember(IRAuthenticationTicket, _
IR_DomainName, _
IR_UserGroup, _
IR_UserName)
If xmlResponse.GetAttribute("success") = "true" Then
Console.WriteLine("The user removed from the user group")
Else
Console.WriteLine("The User cannot be removed from the group.")
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
AddUserGroupMember | GetUserGroupMembers
Web Services API Syntax based on infoRouter Document Management System Version 7.0
Copyright() 1998-2008 Active Innovations, Inc.
infoRouter EDMS