Extracting email addresses for a group


#1

Is there any way that I can pull a list of email addresses for all members of a particular group?


(cpradio) #2

Would the Data Explorer Plugin do this? I really need to install that locally to see what can be done with it. (bbiab while I go do that before I forget)


#3

I need a way to do it without plugins. I’m on a hosted plan which limits which stops me from installing them.


(cpradio) #4

With Discourse? As they’ll install that one, it is supported by core.


#5

Ok, that’s good to know. (Yup, with Discourse).


(cpradio) #6

Okay, this is going in blind as for whatever reason, the plugin doesn’t produce a table of results for me (for any query), but this is my first stab at what you are looking for (I think).

group-emails.dcquery.json (606 Bytes)


(Kane York) #7

It’s due to not keeping up with changes in core:

Uncaught Error: Could not find module `discourse/lib/avatar-template` imported from `discourse/plugins/discourse-data-explorer/discourse/components/query-result`

(cpradio) #8

I just grabbed latest, or are you saying that the plugin needs to be adjusted? (seems to be the plugin… based on the error)


(Kane York) #9

OK, just fixed it, data-explorer will be fixed when you next update it :wink:


(cpradio) #10

Sweet, as I just commented out the avatar template usage to see if my query works and it does.

@HAWK, when you get the plugin, you can import my script above, here is a sample of the output


#11

Thanks Matt, you’re a star.


(system) #12

(Sam Saffron) #13