- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
}
