Legacy Knowledge Base
Published Jun. 30, 2025

I cannot disable the execution of Groovy scripts in Server Administration

Written By

Orsolya Hegedus

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How to articles!

While we make every effort to ensure this Knowledge Base is accurate,it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Despite disabling Groovy scripting in System Settings > Security section > Script Management, Administrators are still able to execute Groovy scripts in the Server Administration > Script tab.

Environment

  • 2024.Q2+

Resolution

  • The above described behavior is the intended behavior
  • The description for the system configuration is:
    • “Administrators can create and execute code in their virtual instance. Disabling this feature deactivates all actions and validations that use Groovy.”
  • As Server Administration is system scoped, this setting does not have an effect on it.

 

What does the Script Management setting do?

  • It disables scripting inside Workflows and Objects

 

Possible solutions to limit the availability of scripting in Server Administration:

  • Creating a virtual instance for the users you would like to limit.
  • Only having a single Administrator account, and creating “Company Admins” with a lower permission level than the Server Admin.

 

Additional Information

 

 

Did this article resolve your issue ?

Legacy Knowledge Base