GetRoleCollectionFromUser -> 0x80131600

Apr 9, 2010 at 12:26 PM

Currently (0.5.4ALPHA5) this operation does not take loginName for payload which results in the following:

  $().SPServices({
    operation: "GetRoleCollectionFromUser",
    async: false,
    loginName: "mcr\\rdp1",
    completefunc: function(xData,Status) {
      alert(xData.responseXML.xml);
    }
  });

 

<soap:Fault><faultcode>soap:Server</faultcode><faultstring>Exception of type 'Microsoft.SharePoint.SoapServer.SoapServerException' was thrown.</faultstring><detail><errorstring xmlns="http://schemas.microsoft.com/sharepoint/soap/">The loginName cannot be blank or longer than 251 characters.</errorstring><errorcode xmlns="http://schemas.microsoft.com/sharepoint/soap/">0x80131600</errorcode></detail></soap:Fault>

Coordinator
Apr 9, 2010 at 12:40 PM
Edited Apr 9, 2010 at 12:41 PM

The right option there is 'userLoginName' per the documentation. ;+)  Inconsistencies in the Web Service parameters and error messages are courtesy of our pals in Redmond, of course.

M.

Apr 9, 2010 at 1:09 PM

definitely :) still it's not what i need :(