AnsweredAssumed Answered

returns all the groups this user is a member of

Question asked by tyty tyty on Feb 6, 2013
Latest reply on Feb 7, 2013 by Ravi Teja


i have API code to get the names of all groups that the user admin is member of


but this code get groups not members



  'Get the user interface of user 'admin'
  Dim userMgr As IEdmUserMgr7
  userMgr = vault.CreateUtility(EdmUtility.EdmUtil_UserMgr)
  Dim john As IEdmUser8
  john = userMgr.GetUser("admin


  'Get the groups he is member of
  Dim groups() As Object
  groups = Nothing

  'Display a message box with the group names
  Dim message As String
  message = "admin

's groups:" + vbLf
  Dim i As Integer
  i = LBound(groups)
  While (i <= UBound(groups))
    Dim group As IEdmUserGroup7
    group = groups(i)
    message = message + group.Name + vbLf
    i = i + 1
  End While