Quantcast
Channel: jQuery Library for SharePoint Web Services
Viewing all articles
Browse latest Browse all 6517

New Post: GetGroupCollectionFromUser

$
0
0
Hi Marc,
I'm working with GetGroupCollectionFromUser to try and filter a dropdown list based on the group a user is a member of. From what I can see when I use if($(xData.responseXML).find("Group[Name='GroupName']").length == 1){..} the value returned is the name of the last group returned in the collection. Is this correct? The behaviour I'm really looking for is to test whether 'GroupName' is ONE OF the groups returned. Can you suggest how I achieve this?

eg. The method may return <group Name='Group01'/><group Name='Group2'/> for user A.
I want to know if User A is a member of Group01 and set a variable accordingly. I don't care if they're a member of Group02 or not.

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>