Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Unable to run Groovy script in my DEV instance

Avatar

Level 3

Hi,

 

We are able to run the groovy script in our Local AEM instance, but in DEV instance(there on cloud) we are getting this error "You do not have permission to run scripts in the Groovy Console.

Same Service pack (SP-6.5.12) is installed in my DEV and Local instances.

 

Could you please help us to run the script in DEV instance also.

 

Thanks,

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

In OSGI configuration check for "Groovy Console Configuration Service" .  You should be able to find the property there . 

View solution in original post

4 Replies

Avatar

Community Advisor

Hi,

Have you checked if your username is part of the "Script Execution Allowed Groups" ?  Pls check the below links. It may help.

https://github.com/icfnext/aem-groovy-console#osgi-configuration

https://github.com/icfnext/aem-groovy-console/issues/91

 

Thanks,

Somen

Avatar

Level 3

Hi Somen,

 

Thank you so much for the quick reply, where can we check this part "Script Execution Allowed Groups" and in Local instance, we  did not give anything like this, but it is running properly.

Thanks,
Ajay Boddu.

Avatar

Correct answer by
Community Advisor

In OSGI configuration check for "Groovy Console Configuration Service" .  You should be able to find the property there . 

Avatar

Level 1

see: https://lucanerlich.com/docs/aem/groovy-console/

 

Add the following osgi configuration file:

{
"allowedGroups":[
"administrators"
],
"allowedScheduledJobsGroups":[
"administrators"
]
}