Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT SI_GROUP_MEMBERS
FROM CI_SYSTEMOBJECTS
WHERE SI_PROGID = 'CrystalEnterprise.UserGroup'
AND SI_NAME = 'Crystal NT Users'
function getUsers( sortKey) {
// Retrieve the PluginManager and use it to retrieve the Users plug-in.
PluginMgr = IStore.PluginManager;
UserPlugin = PluginMgr.Plugins("Desktop").Item("CrystalEnterprise.User"); // SAMPLES version
UserPlugin = PluginMgr.Plugininfo("CrystalEnterprise.User"); // SDK REFERENCE version
// Query the users
var uQuery = "SELECT SI_ID, SI_NAME, SI_USERFULLNAME, SI_DESCRIPTION, " +
" SI_NAMEDUSER, SI_USERGROUPS, SI_ALIASES" +
" FROM CI_SYSTEMOBJECTS " +
" WHERE SI_PROGID = 'CrystalEnterprise.User'" +
" ORDER BY " + sortKey;
var uColl = IStore.Query( uQuery);
return uColl;
}
function getGroups() {
// Retrieve the PluginManager and use it to retrieve the Groups plug-in.
PluginMgr = IStore.PluginManager;
GroupPlugin = PluginMgr.Plugins("Desktop").Item("CrystalEnterprise.UserGroup"); // SAMPLES version
GroupPlugin = PluginMgr.Plugininfo("CrystalEnterprise.UserGroup"); // SDK REFERENCE version
// Query the user groups
var gQuery = "SELECT SI_ID, SI_NAME FROM CI_SYSTEMOBJECTS " +
" WHERE SI_PROGID = 'CrystalEnterprise.UserGroup'" +
" AND SI_ID > 134"; // exclude default groups: eg Everyone, Administrator
var gColl = IStore.Query( gQuery);
return gColl;
}