change execution user for powershell action in flow designer

Yatharth Batra
Tera Expert

POWERSHELL ACTION IN FLOW DESIGNER EXECUTES AS SYSTEM USER BUT FAILES AS LOGGED-IN USER

 

I am trying to consume a powershell action in flow designer; the powershell is running on midserver as system user instead of user provided in connection details.

 

Snippet of result when I try to use command 'whoami'

find_real_file.png

 

This user is not having access to content which I am trying to read & edit - and the action fails with error as below:

find_real_file.png

and error code is having userid as passed in credential of this step.

 

Is there any way we can change the execution-user to be same as user passed in credentials instead of system account.

1 ACCEPTED SOLUTION

Yatharth Batra
Tera Expert

It is resolved, the service account which was running midserver as service on OS was culprit. Once changed it from system to user-account; the system was no longer reproducible.

View solution in original post

5 REPLIES 5

Yatharth Batra
Tera Expert

It is resolved, the service account which was running midserver as service on OS was culprit. Once changed it from system to user-account; the system was no longer reproducible.