E-mails ophalen via API

AI-generated summary

Joe_F asks how to pull user emails via the API for all users, not just one. NateDhaliwal notes that while /admin/users/{id}.json doesn’t return emails, the /admin/users/list/{flag}.json endpoint does. Pfaffman suggests using the Data Explorer plugin, providing a sample query to fetch user data including email and activity, and explaining how to run the query via the API using a POST request to /admin/plugins/explorer/queries/{query_id}/run. Joe_F confirms the issue is resolved, thanking the community for the help Joe_F, NateDhaliwal, pfaffman.

Hallo allemaal,

Ik heb een pijplijn opgezet die alle gebruikersinformatie ophaalt, maar de optie om hun e-mailadres op te halen is niet beschikbaar.

Ik heb een beheerdersrol en de API-sleutel, enz. Kan ik dit instellen, zo ja, hoe? Ik wil deze kolom toevoegen in een tabel voor alle gebruikers, niet voor eenmalige gebruikersquery’s.

Met vriendelijke groet, Joe

Interestingly, something like /admin/users/{id}.json doesn’t return the user’s email as part of the response, but getting a list of users (/admin/users/list/{flag}.json) does. If you pass a parameter like username, you can probably get the specific user.

Ik wil een volledige lijst van gebruikers, hun activiteit op de community en hun e-mailadres, maar het lijkt er niet op dat dit een optie is.

The data explorer plugin is probably the way to do that. And then you can request a particular query via the API.

Bedankt, ik had dit nog niet eerder gezien, maar het lijkt erop dat dit daar niet mogelijk is, tenzij ik iets mis!

You could probably search here and find some examples or at ask.discourse.com, I asked

I’m unclear about who this link can work for:
https://ask.discourse.com/discourse-ai/ai-bot/shared-ai-conversations/oeofVCGwHrYuzKrtLV6PeQ

Heb het opgelost, bedankt!

Je bent geweldig geweest!