Group Administration Functions

This section contains functions that enable users to handle group administration.

Some of the functions below require an API token set up in PowerScripts.

Functions Summary

 

Example (requires API Token set up):

const string groupName = "mygang"; string user = currentUser(); if(groupExists(groupName)) { runnerLog("Must remove group :" + groupName); removeGroup(groupName); } else { runnerLog("Group will be created :" + groupName); } if(createGroup(groupName)) { addUserToGroup(user, groupName); if(!userInGroup(groupName, user)) { return "nok-1"; } removeUserFromGroup(user, groupName); if(userInGroup(groupName, user)) { return "nok-2"; } removeGroup(groupName); return "ok"; } return "nok-3";

 

Peacock