Unable to run Groovy script in my DEV instance | Community
Skip to main content
Level 3
March 28, 2023
Solved

Unable to run Groovy script in my DEV instance

  • March 28, 2023
  • 2 replies
  • 4639 views

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,

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by somen-sarkar

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

2 replies

somen-sarkar
Community Advisor
Community Advisor
March 28, 2023

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

Level 3
March 28, 2023

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.

somen-sarkar
Community Advisor
somen-sarkarCommunity AdvisorAccepted solution
Community Advisor
March 28, 2023

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

August 14, 2024

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

 

Add the following osgi configuration file:

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