I am using UserService.asmx web service in Infopath Forms 2010 to retrieve list of groups to which current user belongs. But unfortunately it is giving 401 error for some of the users. Looking at the SharePoint ULS Logs I see below error:
Data adapter failed during OnLoad: The remote server returned an error: (401) Unauthorized.
The following query failed: GetGroupsFromCurrentUser (User: XYZ, Form Name: Draft Contract Template, IP: , Connection Target:
, Form ID: urn:schemas-microsoft-com:office:infopath:Draft-Contract-Template:-myXSD-2009-09-02T11-18-43 Type: DataAdapterException, Exception Message: The remote server
returned an error: (401) Unauthorized. The remote server returned an error: (401) Unauthorized.)
Kindly respond so that I can get appropriate resolution.
Thanks & Regards