SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to filter by group name using wildcard, something like this NEC*

Do I use SPServices or how can this be done?

share|improve this question
You need to add some context, like where do you want this? What technologies are you comfortable with / allowed to use? – Robert Lindgren Mar 18 '14 at 14:39

You cannot use CAMLQuery on SPService to query the SharePoint Groups.

So the best idea that I have so far is get all the Groups using GetGroupCollection method on SPServices ( Then you can filter the result, that looks like that

The best way is using a JQUery plugin like this:

Then you will be able to type a query like

var xml = '<item><title>Hello world!</title></item>';
$.xmlDOM( xml )
    .find('item > title')
        .each(function() {
            // Alert's 'Hello world!'
            alert( $(this).text() );
share|improve this answer
Can we Query SharePoint User Groups with CAML ? I didn't know about that.. – Arsalan Adam Khatri Mar 18 '14 at 14:57
I had misunderstood your question but the update should be ok – Salvatore Di Fazio Mar 18 '14 at 15:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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