As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
The Alfresco JavaScript API provides a rich set of scriptable Java objects that are available to the script writer. Many "root" scope objects (see below) are provided by default, such as access to the user home folder, company home folder, WCM Web Projects, search, People API…
groups.getGroup(groupName);
groups.getAllRootGroups()
org.mozilla.javascript.EcmaError: ReferenceError: "groups" is not defined
Executing a simple code like groups.getAllRootGroups()the debugger throws a popup with the exceptionorg.mozilla.javascript.EcmaError: ReferenceError: "groups" is not definedand I obtain the same result with other root objects.
groups The root of group authorities. Providing access to groups Groups
org.mozilla.javascript.EcmaError: ReferenceError: "people" is not defined