Limit Number Of User Creation

Hi Guys,

Is there anyway can set a limit for the users creation in Nextcloud?

Like a hard cap? Nextcloud is open source and I don’t see this being more then a couple lines of code. It should be a simple if and else function.