jamesiarmes / php-ews

PHP Exchange Web Services
http://jamesarmes.com/php-ews/
MIT License
567 stars 304 forks source link

How create owner for a Task? #308

Open sjscosta1981 opened 8 years ago

sjscosta1981 commented 8 years ago

I'm using the 2007 exchange server. It's possible to create Owner by webservices for a Task? And how display to task ?

Thanks

jamesiarmes commented 7 years ago

EWS sets the owner of the task to the request user. If the user you're using for authentication has impersonation privileges, you could impersonate the user that you want to make the owner. If you don't have impersonation privileges a quick google search presented some possible options: http://www.infinitec.de/post/2009/03/19/Setting-the-Task-owner-on-new-items-using-Exchange-WebServices.aspx, http://stackoverflow.com/questions/3209030/creating-tasks-for-other-users-using-exchange-web-services-ews-managed-api. I don't have access to a system where I could test either of these methods, but you may be able to get them to work yourself.

You can get an existing task by using either a FindItem or GetItem operation.