getGroupsInZone(filter, zone, paging, sortBy) returns an array of ScriptGroup objects representing groups found in the specified zone.
- Pattern to filter groups by. If the filter is null, an empty string or * all groups found will be returned. If the filter starts with * or contains a ? character results returned could be inconsistent.
- The zone in which to search. This could include application zones such as APP.DEFAULT, APP.SHARE, or APP.RM or authorization zones such as AUTH.ALF or AUTH.EXT.<ID>.
- A ScriptPagingDetails object.
- The property by which to sort the results, for example displayName.
An array of ScriptGroup objects from the specified zone.
var filter = "Star"; // return all results, skip 0 var paging = utils.createPaging(-1, 0); model.scriptGroups = groups.getGroupsInZone(filter, "APP.DEFAULT", paging, "displayName");