1
Vote

401 Unauthorized access for UserService.asmx

description

Hi

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: http://contoso.com/InfoPath Connections/GetGroupsFromCurrentUser.udcx, Request: http://contoso.com/subsite/createform.aspx?Source=http://contoso.com/subsite/default.aspx, 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.)

GetGroupsFromCurrentUser -> http://contoso.com/subsite/_vti_bin/ILoveSharepoint/UserService.asmx

Kindly respond so that I can get appropriate resolution.

Thanks & Regards
Amol

comments