Workflows not able to access external ecma scripts | Community
Skip to main content
February 24, 2025

Workflows not able to access external ecma scripts

  • February 24, 2025
  • 1 reply
  • 794 views

Hi Members

We have a workflow which uses a ecma script for or split.

This workflow is not able to access external ecma scripts Getting below error in logs

.granite.workflow.WorkflowException: Unable to find script resource /apps/workflow/scripts/ 

 

I am trying to add a read permission for the workflow-service.
we use Netcentric AC tool and .yaml file to apply permissions.

how can i add permissions to OOTB workflow-service user in yaml file.

 

Also is there any other solution.

 

TIA

1 reply

arunpatidar
Community Advisor
Community Advisor
February 24, 2025

Hi @8080snk 

You can write rule inside ace_config tag

 

- ace_config: - workflow-service: - path: /apps/workflow/scripts permission: allow actions: read
Arun Patidar
8080snkAuthor
February 25, 2025

Hi @arunpatidar 

thanks for the solution,

 

but getting below error

Could not process yaml files / e=biz.netcentric.cq.tools.actool.validators.exceptions.NoGroupDefinedException: Validation error while reading ACE definition nr.1 of authorizable workflow-service is not defined in group configuration
Execution time: 0 ms

could it be coz the user is not defined in the yaml?

 

TIA

 

 

arunpatidar
Community Advisor
Community Advisor
February 25, 2025

Hi @8080snk 

It could be because of groups are managed externally(out side ACTools)

you can allow permission for external group by setting below

 

https://github.com/Netcentric/accesscontroltool/blob/develop/docs/AdvancedFeatures.md#configure-memberships-oftowards-externally-managed-groups

 

- global_config: defaultUnmanagedExternalMembersRegex: .*
Arun Patidar