Anyone has an experience to use AddMembership method of the UserProfileService webservice to add entry with this method with powershell ?
any sample code will be appreciated.
POST /_vti_bin/userprofileservice.asmx HTTP/1.1 Host: csdwd-spsmul8.intra.cymer.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/AddMembership"<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><AddMembership xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService"><accountName>string</accountName><membershipInfo><Source>DistributionList or SharePointSite or Other</Source><MemberGroup><SourceInternal>guid</SourceInternal><SourceReference>string</SourceReference></MemberGroup><Group>string</Group><DisplayName>string</DisplayName><Privacy>Public or Contacts or Organization or Manager or Private or NotSet</Privacy><MailNickname>string</MailNickname><Url>string</Url><ID>long</ID><MemberGroupID>long</MemberGroupID></membershipInfo><group>string</group><privacy>Public or Contacts or Organization or Manager or Private or NotSet</privacy></AddMembership></soap:Body></soap:Envelope>