1 Reply Latest reply on Feb 19, 2015 5:45 AM by pawans

    osapi.jive.corev3.places.Group.getMembers() not working..?

    poojiee

      osapi.jive.corev3.places.Group.getMembers() is not working..

      how to make it work..?

        • Re: osapi.jive.corev3.places.Group.getMembers() not working..?
          pawans

          Heres an example for add-on given that you know the group id

           

          osapi.jive.corev3.places.get({ entityDescriptor: 700 + "," + groupId }).execute(function(response) {

                  var group = response.list[0];

                  group.getMembers().execute(function (members) {

                         console.log(members);

                   });

            });

          You first need to get the group object, and then call getMembers() on it