Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
1  
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 at 14:39

1 Answer 1

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 (http://spservices.codeplex.com/wikipage?title=Users%20and%20Groups) Then you can filter the result, that looks like that http://msdn.microsoft.com/en-us/library/ms774837.aspx.

The best way is using a JQUery plugin like this: http://outwestmedia.com/jquery-plugins/xmldom/

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 at 14:57
    
I had misunderstood your question but the update should be ok –  Salvatore Di Fazio Mar 18 at 15:06

Your Answer

 
discard

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.