I used SPServices to create a SharePoint Group dynamically from a list item. Check!
I then run a SharePoint Workflow that creates a series of 'child' list items related to the first item. Check!
On just one of those 'child' items, [Title=Team Selection], I used a Contact list lookup to select "Team members" for the list item, (19 different fields0. Check!
When the list item is saved I perform a PreSaveAction to cycle through each "Team member" column, grab the user login, company name and a few other columns from the Contacts list and update fields on the list item. Check!
After finishing that task, the PreSaveAction also adds each "Team member" to the SharePoint Group that I created on the parent list item. Check!
The situation I am running into is that if I update the "Team member" columns at any time, the new Contact gets added to the SharePoint Group but the old Contact does not get removed.
I considered about using GetUserCollectionFromGroup to aquired the list of users in my SharePoint Group and then cycle through each entry with RemoveUserFromGroup but I am a little concerned about save conflicts. I am on a tight schedule, but so I
may have to go that route to
I was looking through the offical list of web services and found RemoveUserCollectionFromGroup and was hoping that Mark would have a suggestion for an alternative, or perhaps consider adding it to the SPServices in a future release.
Any thoughts out there?