legacy-knowledge-base
公開されました 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

learn-legacy-article-disclaimer-text

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