Describe your feature
Add the ability for admins to create "user invites".
This would allow the server to remain closed to public registration while providing admins a way to invite users.
Is your feature request related to a problem? Please describe and link any related issues, discussions etc.
Admins are currenlty only able to make a server completely closed or completey open to user registration which is not ideal.
Having a way to keep public registrations closed but offer a way to invite users would allow admins to let specific users join.
Additional context
The wording of the "registration enabled" setting should be changed to "public registration" for clarity
Invites will be stored in the database, which ensures that invites can be queried and deleted easily.
Because the server is seperate from any FE implementation, a "user invite" should be a unique and secret code which can be inlcuded in registration requests. It is up to consumers and specific FE implementations to decide how to share this with users and handle including this in sign up requests.
In order to allow for flexibilty, a "user invite" should either be valid for a single use or exist until deleted to allow for multiple signups using the same secret. Could an invite also automaticlly expire after a period of time?
A new API module (maybe /v1/invites) should be created to allow for CRUD operations on user invites.
The /v1/users [POST] endpoint should be updated to include an optional inviteCode option.
If the server has public reigstration disabled, then sign up requests should be deined unless they include a valid invite code.
Should invite codes still be usable even with public registration enabled?
When an invite is used (regardless of single or multi use), then the admin that created that invite should recieve an email notifying them what user account was created. This makes the use of "multi use" user invites safer as the admin can then know how the invite is being used.
Should any data be saved to the user to track if/how the user joined via an invite? should past invites be persisted or should they be fully removed?
Describe your feature Add the ability for admins to create "user invites".
This would allow the server to remain closed to public registration while providing admins a way to invite users.
Is your feature request related to a problem? Please describe and link any related issues, discussions etc. Admins are currenlty only able to make a server completely closed or completey open to user registration which is not ideal.
Having a way to keep public registrations closed but offer a way to invite users would allow admins to let specific users join.
Additional context
/v1/invites
) should be created to allow for CRUD operations on user invites./v1/users [POST]
endpoint should be updated to include an optionalinviteCode
option.