I think both your request here and @nathankershaw’s feature request are pretty related.
At the moment we have 1 global invite code, it has no expiry, to expire it the admin can just zero out the code or change it.
What is being asked here is a more sophisticated mechanism for invite codes where it is integrated into the global invite system.
The key features that are being asked for
So this to me feels like an extension of this dialog:
Perhaps a tab there?
Strip send invite button
How many people are allowed to register using this link?
How long would you like this invite link to work for? default 1 month.
So once you fill that up you would get an invite link that works for a limited time, integrates with the rest of the invite system, allows you to add people to groups and so on.
With that in place we can actually remove the whole “invite code” global feature.