There is an 'Impersonate' method any any connection object created via the workflow API... let me know if you need an example, I can dig one up
Thanks for the Reply..
Can you plese explain with some sample code to Impersonate a user in K2.Net???
I need worklist for the different user who is not a loggedin user or managed user..
Please help me..
Shoot, I am sorry, I didn't catch that this question was for K2 2003 and not blackpearl. I am only familiar with the blackpearl product, but the API seems to strongly resemble K2 2003's from what I've seen. Are you creating a connection object of some sort when connecting to your server? In blackpearl, this connection object has a method called 'ImpersonateUser' where you pass the user name to impersonate after you open the connection. All methods then called over that connection, such as getting a worklist, will be fore the user that was sent impersonate. Whomever makes the original connection, though, needs to have the 'impersonate' right.
I hope some of this still applies in the K2 2003 world...
yes i agree with this i used the impersonate method when i had to connect as an adam user for extranet purposes
the code when you impersonate has to be run as system and the system user needs impersonation rights
this is for a blackpearl scenario though ill post up the code i used tomorrow
Thank u All..
I need to impersonate in k2.net I already done it in blackpearl... Can we use blackpearl namespaces like workflow.client or workflow.management in for accessing K2.net server??? Because I need worklists from old k2.net server along with the ones in new Blackpearl server..I am using Impersonation to get worklist of some one who is not loggedin user for blackpearl...but I dont know what to do in case of k2.net because in K2Rom or K2mgt namespaces I dont see any impersonation property....any one helpme with this...
I have been trying on a issue since 2weeks but got no answer yet....
I need to retrieve WorklistItems and Actions associated with them irrespective of logged in user so I am accessing Global worklist using Mnagement namespace in Blackpearl...I am getting the WorklistItems but the Datafields are empty and also the I don't see an option to get Actions from those worklistItems.... Is there any other way toget worklists and Actions irrespective of loggedin user....In case of Impersonation we can impersonate as only as one user so I Can't use that because I need to get all worklist items not one users...
Any Help is Appreciated....
Any help on this issue???