7 Replies Latest reply on Nov 21, 2016 2:30 AM by Sowjanya Gonuguntla

    Not able to get the security group members for normal users

    Sowjanya Gonuguntla

      Hi Team,

       

      I had a requirement to get the security group members in SatelliteNav.soy file.

      I am able to get the security group members for the users loggedin as admin  without passing authentication in the ajax call.

      But I am not able to get the members for normal users logged in even though i am passing authentication(admin credentials) and receiving 404 error.

      The below is the ajax call i tried to get the security Group members.

       

      $j.ajax({lb}

            url:'/api/core/v3/securityGroups/{securityGroupId}/members',

           headers: {lb}

                      'Authorization': "Basic " + btoa("username" + ":" + "password")

                  {rb},

             dataType: 'text',

             type: 'GET',

             async:false,

               success:function(result){lb}

              alert(result);

                {rb},

             error: function(xhr, status, error) {lb}

               alert("error");

                            {rb}

          {rb});

       

      Ryan Rutan

      Can you please suggest me how can I get the security group members, if the loggedin user is not admin.

       

      Thanks!

      Sowjanya