Issue with GoToActivity

  • 21 August 2016
  • 2 replies
  • 3 views

Badge +3

Hello,

 

I'm trying perform GoToActivity to skip the current task and assign a new one with the new users sent from the .Net application.

Knowing that i'm running this application with an account having Admin rights over this process only and Not an Admin on the K2 server.

 

The problem here is when i try to run this line of code : 

workflowserver.GotoActivity( processInstanceID , "Wherever");

I recieve an error saying : "User does not have Administrator rights."

 

the question here is, do i need Admin permission on the K2 server to use "GotoActivity" or is it something else ?

 

thanks,


2 replies

Badge +10

What security context are you running the .Net application as?  If that's through an application pool account then that account needs Admin access on the k2 server.

Badge +3

Hello Timkn,

 

Yes, the application is running through an application pool account with admin permission over the K2 process only as I don't want to give admin access over the k2 server for this account. is there a way that i can use "GoToActivity" with process admin rights only ?

 

thanks.

Reply