I want to create a rule to limit the number of users on the system to 500.
If the user is created after this total, he will not be able to generate a jwt token and must return some type of feedback informing that we have reached the limit.
To be able to do this, I must know the number of users registered in the system, but I don’t know if this endpoint for “active” users would be suitable.
Thank !!