Bulk Invite Users

rfc
spec

(Jeff Atwood) #1

We should have a user interface for bulk inviting users to Discourse, since it comes up so often.

Probably the best place to trigger this is from the user page, which already has an Invites area:

  • Add a button, “Batch Invite from File”
  • File should have format explained on the page
  • Format should probably be CSV, one line per user, in the format username, Very Long Name, email@example.com (should we support group here @sam)
  • Uploading the file triggers sending invites to everyone in the file, and adding them to the invite directory on that page, same as if you had clicked the “Send an Invite” button 100, 200, 500 times and done it manually.

I am not sure if the invites support pre-staging the username (short+unique) and name (long+not-unique), but we should support it for the file upload case.


Watch category on bulk invite
API Functionality for invites
(Arpit Jalan) #2

Sent a PR for this:


(Jeff Atwood) #3

One other tweak @techapj. When the panel is empty, it says:

No invites were found.

This copy should change to include

No invites were found.

You can send invites individually, or to larger groups by submitting an invite file.

The invite file link should link to a permanent howto topic here on meta that describes the invite file format, how it works, and walks people through the process with screenshots.


(Arpit Jalan) #4

This is now implemented:

https://github.com/discourse/discourse/commit/50b3a1734f77e0e6d25287b29a186286322053e7

Here’s the howto for detailed description:


(Jeff Atwood) #7

Looks great! We need to add support for two more fields in the CSV file:

  • long name (non-unique, unicode user name)

  • short name (unique, max 20 chars ASCII username)

Keep email as the first field, so:

maxwell@example.com, Maxwell P Username Jr., maxuser
sadie@example.com, Sadie Pushweather, sadiep

(Tobias Eigen) #8

Don’t you think it’s ok to let the user decide their own long name and short name, or have this come from google etc along with their photo if they log in via that method? Or am I missing something?

More urgent (to me) would be to have invites recognized even if the person ignores the invite link and logs in directly, and to have the ability to add people to groups as they are bulk invited.


(Jeff Atwood) #9

This pre-fills the information for them. If you don’t want it, don’t add those fields to that line of the CSV file. Simple.

Groups will be added later, post V1.0 probably.


Is it possible to assign a group with batch invite?
(David John Smith) #10

Hi guys

I’d love to help out here. If you need any help with this feature please let me know.

Thanks, David


(David John Smith) #11

So I’ve started working on this at a really inopportune time. My final exams are looming, so I’m going in to full lock-down for the next fortnight. If it’s still outstanding at that point I’ll jump back on it, just wanted to let you all know in case someone is hanging out for this feature.


(Jeff Atwood) #12

Are you working on this now? @techAPJ can take over if it is a bad time.


(David John Smith) #13

No I’m not. Progress up to this pint has been negligible. If @techAPJ can take over that would be great.


(Arpit Jalan) #14

Okay, no problem. I’ll take this over. Thanks for your efforts though!


(Sam Saffron) #15