Hello!
I create item in PWA list via timer procedure (c#).
I have a workflow configured in SPD on item creation.
In timer code I open a web from definet user, so item in list creates without any problem (author - this definite user), but workflow stops immediately with error:
RequestorId: 47da81b9-1361-8e8e-2f05-c8376aa8939c. Details: System.ApplicationException: HTTP 401 {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"request-id":["47da81b9-1361-8e8e-2f05-c8376aa8939c"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["29"],"SPIisLatency":["1"],"Cache-Control":["private"],"WWW-Authenticate":["Bearer realm=\"2185ffaf-5b35-41d5-89ac-85ba7fd54a3a\",client_id=\"00000003-0000-0ff1-ce00-000000000000\",trusted_issuers=\"00000005-0000-0000-c000-000000000000@*,00000003-0000-0ff1-ce00-000000000000@2185ffaf-5b35-41d5-89ac-85ba7fd54a3a\"","NTLM"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1; RequireReadOnly"],"MicrosoftSharePointTeamServices":["15.0.0.4420"],"Date":["Fri, 12 Sep 2014 08:01:33 GMT"]} {"error_description":"The server was unable to process the request due to an ...
When I run code with elevated privileges, workflow runs without error, but from system account (it looks like this, because workflow can't create Project from item and it creates tasks as Workflow, not as "Workflow from user").
User profiles servises are running, I can find profile for user in central admin and c I can run full sync.
I also have restarted IIS for1000s times...
Help me please, how can I run workflow from specific user (I gave him even app admin permissions, but it still doesn't work)?
From LOGS:
The set of claims could not be mapped to a single user identity. Exception 3001002...
The registered mappered failed to resolve to one identity claim...
STS Call Claims Saml: Problem getting output claims identity...