try {
var userName = "utilisateurAAjouter";
var siteId = "monSite"
var grpName = "GROUP_site_" + siteId + "_SiteManager";
var grp = people.getGroup(grpName) ;
var pers = people.getPerson(userName);
if (grp) {
if (pers) {
people.addAuthority(grp, pers);
}
else {
logger.log("Utilisateur " + userName + " inconnu");
}
}
else {
logger.log("Groupe " + grpName + " inconnu");
}
}
catch(e) {
throw e;
}
Si j'ai bien compris, il faut que je me positionne sur le serveur dans /opt/alfr…./tomcat/alfresco/dictio../scripts/monfichier.jsJustement non, il ne faut pas déposer le fichier dans le filesystem mais dans la GED !
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.