开发者

SharePoint workflow user

开发者 https://www.devze.com 2022-12-26 08:59 出处:网络
I have created a SharePoint workflow in visual studio , I have extended this workflow from thedefault SharePoint approval workflow as discribed here

I have created a SharePoint workflow in visual studio , I have extended this workflow from the default SharePoint approval workflow as discribed here

The workflow is running prop开发者_开发知识库erly. Is there a way I can get the workflow to run in the context of the user instead of th system account?


There are a couple of reasons this is not as desirable as it might seem. Firstly, the wrorkflow has to do things that the user does not have permissions to do directly. Secondly, workflows are background tasks, and as such there may not be a logged in user when the code is running.

If you just need a specific task to run as a user, take a look at http://blackninjasoftware.com/2009/04/09/how-to-programmatically-impersonate-users-in-sharepoint/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号