For my Quick Launch jquery Accordion, I used this link : http://sharingtothepoint.blogspot.ch/2013/10/how-to-make-accordion-menu-for-subsite.html Everything works fine because I'm the administrator of the farm. But when I add users to groups and they have permissions on subsites, the jquery doesn't work anymore.

Any Suggestions?

1 Answer 1


There is a way to work around running with privilages in JQuery using SPServices. You can use the GetGroupCollectionFromUser function and if they belong to the group, run your accordion in the function.


<script type="text/javascript">

isGroupMember("My Permission Group", function(result){

    runAccordionFunction();    }


function isGroupMember(groupName, callback)
     operation: "GetGroupCollectionFromUser",
     userLoginName: $().SPServices.SPGetCurrentUser(),
     async: true,
     completefunc: function(xData, Status) {

callback( !!($(xData.responseXML).find("Group[Name='" + groupName + "']").length) ); /*returns bool */


This might work for you as a workaround. Let me know if this helps. Good Luck!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.