Microsoft Developer Network > Página Inicial dos Fóruns > SharePoint - Workflow > User ID as "System Account" in Workflow History
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoUser ID as "System Account" in Workflow History

  • quinta-feira, 15 de novembro de 2007 18:41new2workflow Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

     

    Hi,

    I am using Sharepoint Designer Workflow. When I check the workflow history I can see the User ID as "System Account" and not actually the user who completed the task. Please let me know how I can change the User ID to that particular user instead of system account.

     

     

Respostas

  • segunda-feira, 26 de janeiro de 2009 3:20David Mann [MVP]MVP, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Workflows run as System, not individual users.  You can access user information through the workflowProperties object (workflowProperties.OriginatorUser to get you the person who started the workflow), otherwise through the task itself directly

    Hope that helps...

    Dave

     

     

Todas as Respostas

  • sexta-feira, 23 de janeiro de 2009 16:58sailing_od Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Has anyone resolved this issue?  I am having the same problem where in the Workflow History page the User ID is System Account instead of the user who actually completed the workflow.  I've read that there are some issues with application pool account, so I did change that to a new user account in Central Admin and still same problem exists.

     

    Thanks in advance!

    Scott

  • segunda-feira, 26 de janeiro de 2009 3:20David Mann [MVP]MVP, ModeradorMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Workflows run as System, not individual users.  You can access user information through the workflowProperties object (workflowProperties.OriginatorUser to get you the person who started the workflow), otherwise through the task itself directly

    Hope that helps...

    Dave

     

     

  • segunda-feira, 26 de janeiro de 2009 21:14sailing_od Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Yes Dave.  That does help and does make sense.  Thanks for the post!
  • sexta-feira, 3 de julho de 2009 12:37atr232000 Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Sorry can you go in to a bit more details for us noobies

    Alan
  • segunda-feira, 3 de agosto de 2009 5:40VivaLaDan Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     
    Unfortunatly you only answered half of the question and I need the answer for the second bit.

    How do you change the user that comes up in the workflow history? My example is a task's OnChanged event. When a user fills in an InfoPath form and submits that, the workflow history needs to show up for that user, not for the system account. You can get the user that submitted the form from the executor property in OnTaskChanged. A small gottya here is that you have to bind a local field to the property in the designer and get the value from that else you won't get anything.

    What I want to know is what do you then do with that value? If you were adding the workflow history log event yourself then you could set the user but as it's an automatic thing for a said task, how can I control that?