cancel
Showing results for 
Search instead for 
Did you mean: 

bulk admin users' quota

riktaminaars
Champ on-the-rise
Champ on-the-rise
Hi

Is there a way to automatically set all my users' quota ? I'd like them to have 1 GB but seems like I have to set it manually, but I have around 3k users…

I tried browsing/editing the database directly but didn't find anything related to quota. I don't think it should be configured like that anyway..

I also looked into creating a group and set a quota on the group, and then put all my users in that group. But that isn't possible (yet?), unfortunatly.

Thanks for the help
2 REPLIES 2

amandaluniz_z
Champ on-the-rise
Champ on-the-rise
Not sure… but the repository.properties have the usage quota properties:


# ECM content usages/quotas
system.usages.enabled=true
system.usages.clearBatchSize=50
system.usages.updateBatchSize=50

riktaminaars
Champ on-the-rise
Champ on-the-rise
Wrote a script to accomplish this through Javascript Console:

I selected the user start page folder as 'space' to get a list of the users. Not sure if this is a good way but it worked…


for each (dir in space.children)
{
    var user = people.getPerson(dir.name)
        if(user != null){
       if(user.properties["cm:sizeQuota"] == null){
                logger.log(user.properties["cm:userName"] + " " + user.properties.sizeQuota);
                user.properties["cm:sizeQuota"] = "1073741824"; // = 1GB in bytes
                user.save();
            }
        }
}