1 Reply Latest reply on Feb 7, 2013 2:12 PM by Ravi Teja

    returns all the groups this user is a member of

    tyty tyty


      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