Yes, only filtering on roles in the audience for the script deployment.
The theory we have is that since the workflow is running as admin, it passes that along to the workflow action script, and when it saves the record it triggers the UE-script but bypasses the audience filter.
a
alien4u
08/04/2022, 12:09 PM
The Action Script should have a deployment too I believe...
w
Watz
08/04/2022, 12:09 PM
True
a
alien4u
08/04/2022, 12:09 PM
Check the action script deployment and see if you can change the executed as at the action script level.
w
Watz
08/04/2022, 12:15 PM
I can, but why would I? The action script might need to be executed as admin for other reasons.
We can circumvent this issue by checking the current role inside the script instead and do an early return if it is the excluded role.