My workflow ran fine for me as a full control user. In testing any other type of user it failed on a 401. So I followed these steps:
http://msdn.microsoft.com/en-us/library/office/jj822159(v=office.15).aspx
After this, it failed with a 401 on my first REST webservice call so I changed the header using Authorization= "".
http://sharepoint.stackexchange.com/questions/118876/call-http-web-service-unauthorized
I was then able to get results from my REST call.
Then it failed with the below message trying to "Start a task process".
Any thoughts on what I can do?
Thanks.
w3wp.exe (0x2F90) 0x1EE4 SharePoint Foundation CSOM afxwb High System.UnauthorizedAccessException: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException
ex) at Microsoft.SharePoint.Library.SPRequest.GetUsersDataAsSafeArray(String bstrUrl, UInt32 dwUsersScope, UInt32 dwUserCollectionFlags, String bstrValue, UInt32 dwValue, UInt32& pdwColCount, UInt32& pdwRowCount, Object&
pvarDataSet) at Microsoft.SharePoint.SPUserCollection.InitUsersCore(Boolean fCustomUsers, String[] strIdentifiers, SPUserCollectionFlags ucf) at Microsoft.SharePoint.SPBaseCollection.GetEnumerator()
at Microsoft.SharePoint.Client.ServerStub.<EnumerateChildItems>d__36.MoveNext() at Microsoft.SharePoint.Client.ServerStub.WriteAsFeed(Object value, OData... 41e525b4-b6e9-4035-9a5d-2cb7b1804daa
w3wp.exe (0x2F90) 0x1EE4 SharePoint Foundation CSOM afxwb High ...Writer writer, RESTfulQuery query, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ServerStub.Write(Object value, Uri path, ODataWriter writer, RESTfulQuery query, ProxyContext
proxyContext) at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process() at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest() at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream
inputStream, IList`1 pendingDisposableContainer) 41e525b4-b6e9-4035-9a5d-2cb7b1804daa
w3wp.exe (0x2F90) 0x1EE4 SharePoint Foundation CSOM agmjp High Original error: System.UnauthorizedAccessException:
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) at Microsoft.SharePoint.SPGlobal.HandleUnauthorizedAccessException(UnauthorizedAccessException ex) at Microsoft.SharePoint.Library.SPRequest.GetUsersDataAsSafeArray(String
bstrUrl, UInt32 dwUsersScope, UInt32 dwUserCollectionFlags, String bstrValue, UInt32 dwValue, UInt32& pdwColCount, UInt32& pdwRowCount, Object& pvarDataSet) at Microsoft.SharePoint.SPUserCollection.InitUsersCore(Boolean
fCustomUsers, String[] strIdentifiers, SPUserCollectionFlags ucf) at Microsoft.SharePoint.SPBaseCollection.GetEnumerator() at Microsoft.SharePoint.Client.ServerStub.<EnumerateChildItems>d__36.MoveNext()
at Microsoft.SharePoint.Client.ServerStub.WriteAsFeed(Obj... 41e525b4-b6e9-4035-9a5d-2cb7b1804daa
w3wp.exe (0x2F90) 0x1EE4 SharePoint Foundation CSOM agmjp High ...ect value, ODataWriter writer, RESTfulQuery query, ProxyContext proxyContext) at Microsoft.SharePoint.Client.ServerStub.Write(Object value, Uri path, ODataWriter writer, RESTfulQuery
query, ProxyContext proxyContext) at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.Process() at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.ProcessRequest() at Microsoft.SharePoint.Client.Rest.RestService.ProcessQuery(Stream
inputStream, IList`1 pendingDisposableContainer) 41e525b4-b6e9-4035-9a5d-2cb7b1804daa
Tom