Possible to run Powershell script in workflow with user rights, not AR service account rights?

Is it possible to run a PS script module in a workflow but have it run as the user who started the workflow, not the AR service account?  

In the "run-as" setting for the workflow,  we have it set to run as the user, not the AR service account.  Also in the script, we are using the -proxy parameter but when we look at logs, its still using the AR service account to modify the AD groups.  We can see the workflow is indeed getting started by the user account, but the script still runs under the AR service account.   We don't want this script to work unless the user running the workflow has rights to modify the groups. 

Thank you. 

Parents
  • All script modules will execute under the security context of the Active Roles service account. If you want to execute under another security context, then you would need to store the credential and then leverage that credential using PowerShell.

    It is not possible to have Active Roles execute a script module under the security context of an Active Roles User.

Reply
  • All script modules will execute under the security context of the Active Roles service account. If you want to execute under another security context, then you would need to store the credential and then leverage that credential using PowerShell.

    It is not possible to have Active Roles execute a script module under the security context of an Active Roles User.

Children