infoRouter Document Management System - Web Services API Documentation
GetUserGroupMembers
Returns a list of members of the specified user group.
Syntax
[Visual Basic]
Public Shared Function GetUserGroupMembers(ByVal AuthenticationTicket As String, _
Byval DomainName as string, _
Byval GroupName as string) as xmldocument
Parameters

AuthenticationTicket

infoRouter Authentication Ticket

PWD

infoRouter Login user password

DomainName

Domain Name of the usergroup if it is local.

Group Name

The User group name you wish get the member list


Return Value
Returns XML fragment.
<response success="true" error="">
if success = "true" the a list of "Users" are returned
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 GetUserGroupMembers()

Const IRAuthenticationTicket As String = "sid-xxxxxxxxxxxxxx"

'leave it empty string if the usergroup is a global usergroup
Const IR_DomainName As String = "Knowledge Base"
Const IR_UserGroupName As String = "Authors"

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

IR_Obj = New InfoRouter.srv
xmlResponse = IR_Obj.GetUserGroupMembers(IRAuthenticationTicket, _
IR_DomainName, _
IR_UserGroupName)

If xmlResponse.GetAttribute("success") = "true" Then
Dim xmlusersElem As System.Xml.XmlElement
xmlusersElem = xmlResponse.FirstChild

Dim xmlelem As System.Xml.XmlElement
For Each xmlelem In xmlusersElem.ChildNodes
Console.WriteLine(xmlelem.GetAttribute("UserName"))
Next
xmlusersElem = Nothing

Else
Console.WriteLine("Group members cannot be reached.")
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
GetUserGroup | AddUserGroupMember | RemoveUserGroupMember | DeleteUserGroup
Syntax based on infoRouter Document Management System Web Services API Version 7.0
Copyright() 1998-2003 Active Innovations, Inc.
infoRouter Document Management System