Hi,My goal is to create a user and assign him to a group.To do that, I did a java-backed webscript where the user is created. But, as I couldn't find the API to assign the user to a group, I thought I could call a JS script using this code
String group, user;
…
Map<String, Object> params= new HashMap();
params.put("groupe", group);
params.put("utilisateur", user);
Object retour = this.getServiceRegistry().getScriptService().executeScript("addusertogroup.js", params);
…
What is puzzling is the error message I get :Failed to execute script 'addusertogroup.js': Failed to execute script 'addusertogroup.js': ReferenceError: "args" is undefined (AlfrescoScript#6)Well, how can I access those parameters then. I tried args.utilisateur and args["utilisateur"] like in several webscripts examples without success.I'm almost new to the javascript api and webscript.ThanksJerome