Hello,
I need a script to set quota for hundreds of users.
I'd appreciate if someone helps me accomplish this task.
Solved! Go to Solution.
All you need is to execute a query to recover the users you want to work on, and then, use the following API:
var nodes = search.luceneSearch('+TYPE:"cmerson"');
for each(var node in nodes) {
node.setQuota(user, "10240000"); // 10 MB
}
All you need is to execute a query to recover the users you want to work on, and then, use the following API:
var nodes = search.luceneSearch('+TYPE:"cmerson"');
for each(var node in nodes) {
node.setQuota(user, "10240000"); // 10 MB
}
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
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.