Adds a global user group to the specified domain/library.
Visual Basic (declaration) |
---|
Public Function AddUserGroupAsDomainMember( _ |
C# (declaration) |
---|
public XmlNode AddUserGroupAsDomainMember( |
Visual Basic Example |
---|
Public Sub AddUserGroupAsDomainMember() Const IRAuthenticationTicket As String = "sid-XXXXXXXXXXX" 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.AddUserGroupAsDomainMember(IRAuthenticationTicket, _ IR_DomainName, _ IR_UserGroupName) If xmlResponse.GetAttribute("success") = "true" Then Console.WriteLine("The user group added to the domain member") Else Console.WriteLine("The User group cannot be added to the domain members.") 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 |