You are here


setQuota(person, quota) sets the quota content in bytes for the specified person. It can be invoked only by an Administrator authority.


A node representing the user to set the quota for.
A string representing the quota in bytes to allocate to the specified user. A value of -1 means no quota is set.


The following code sets the quota to 10 MB for the user abeecher:

    var userName = "abeecher";
    var user = people.getPerson(userName);
    if (user){
        people.setQuota(user, "10240000"); // 10 MB

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.