How to restrict storage used by xwiki?

I want to restrict the storage used by user or a direction, what should I do?

Maybe could help you?

Thanks but my issue has not been resolved yet.
I want to implement, for example, each user can use a maximum of 1GB storage space.

Did you check ?

Thanks vmassol. I checked the url you given and read the code on the github.
For the custom limits, we can just read the values written in the xml file and we need to implement the other logic ourselves?

That’s what I understand yes.