I tried to use a method that became supported in v6.0: UserGroup.AddUserCollectionToGroup but have not been able to get it to work.
usersinfoxml: '<Users><User LoginName="SPS\\smith"></User></Users>'
I noticed in firebug that SPServices generates a soap:body with
<groupname> and <usersinfoxml>
tags that matche the .../_vti_bin/UserGroup.asmx?op=AddUserCollectionToGroup page except that the tags on the asmx page are caml cased.
I am probably not specifying the usersinfoxml value correctly, but also, if I specify that parameter as "usersinfoxml" (as I show in the code snipped above) a "value does not fall within the expected range" error is returned from the
server, and if I specify it as "usersInfoXml" I get an XML parsing error. I see these errors in Firebug.
When using the code snippit above, the groupName seems to be picked up fine by SPServices (when looking at the Post tab in Firebug), but the XML I tried to pass through the usersinfoxml parameter is not posted to the server (in other words, the userinfoxml
tag is passed to the server with no value).
Thanks in advance for any help!!