How to restrict storage used by xwiki?

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

Maybe https://extensions.xwiki.org/xwiki/bin/view/Extension/Limits+Application/ 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 https://extensions.xwiki.org/xwiki/bin/view/Extension/Limits+Application/#HCustomLimits ?

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.