In a groovy service to call the security object you need to do : Security security = dispatcher.dispatchContext.security For simplification, I set the security object in groovy context like dispatcher and delegator to call directly security.hasPermission() git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1822908 13f79535-47bb-0310-9956-ffa450edef68