02-16-2018 12:00 PM
Hello,
I need a script to set quota for hundreds of users.
I'd appreciate if someone helps me accomplish this task.
02-16-2018 06:22 PM
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
}
02-16-2018 06:22 PM
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
}
Explore our Alfresco products with the links below. Use labels to filter content by product module.