You are viewing limited content. For full access, please sign in.

Question

Question

Change user that .cs script runs under

asked on November 25

Hello, 

 

we have an SDK script that runs as part of a workflow, this script adds/removes users from AD groups. 

 

When running in script editor, script executes successfully, 

 

When running through workflow, script throws error "Invalid permissions", 

 

How do I change which account will run the script in workflow, we found some connections profiles, however I believe this is for accessing the Laserfiche repository. 

 

thank you! 

0 0

Answer

SELECTED ANSWER
replied on November 25 Show version history

Scripts are run with the workflow service account, so you'd either need to give that service account the necessary permissions in AD or write your code to use different credentials.

I'd also recommend reading Sam Carson's comments on the following post as there are important security implications to consider.

Disable AD User using Custom SDK Activity - Laserfiche Answers

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.