Error from... Need Help.. apiAccessor.getIdentityAPI().getUserByUserName

I am not having much luck getting a groovy script to work. It works fine on my local machine, but when I push it to the server running 7.5 it gives the below error.

Any help would be appreciated.

Groovy line

def theUser = apiAccessor.getIdentityAPI().getUserByUserName

return theUser.id

Error message
java.lang.ClassNotFoundException: com.bonitasoft.engine.api.APIAccessor

com.bonitasoft refers to the Subscription Edition of Bonita BPM. So maybe your development environment is a Subscription Edition and your server is a Community Edition?