# Sending users unique messages, or populating private custom fields

**URL:** https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770
**Category:** Feature
**Created:** [September 26, 2015, 12:02pm UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770 "2015-09-26T12:02:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [September 26, 2015, 12:02pm UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/1 "2015-09-26T12:02:06Z")

</div>

We’re looking for a method to send keys to our users, ideally via Discourse.

At the moment we receive anything from 10 to 10,000 keys, which we give away to our readers either first-come-first-served or at random. In the past we’ve used stuff like Godankey to do this, but many publishers now require that we do this on our own site and document the methods employed to reduce abuse and ensure keys to go to real people. Some of our previous competitions had up to 90% abuse rates, these keys can be sold on eBay for anything between $10-$100 depending on the game in question.

There has been a suggestion for some time now that we look at ways to distribute keys via Discourse, either through an automated private message, or by adding a custom field to a user that only they can see. Neither looks to be straightforward, has anyone done anything similar, or has similar requirements?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 26, 2015, 9:45pm UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/2 "2015-09-26T21:45:31Z")

</div>

Can you elaborate exactly how you see this working in Discourse? Step by step, maybe with mockups?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [January 18, 2016, 4:05pm UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/3 "2016-01-18T16:05:14Z")

</div>

It depends if others have other similar use cases really.

All we really need is the means to feed license keys into Discourse, which could be as simple as a CSV import or text field with one line per key, and the ability to specify a query to identify eligible users. That could be similar to how we identify users for badges today. It would be desirable to run the query there and then to identify the eligible users, issuing license keys could be automatic or approved per-user. Approvals can either happen first-come first-served, or at a specified time, it all depends on what Blizzard/Ubisoft or whichever publisher we’re working with has asked for.

The interesting and I guess tricky bit is whether Discourse would either let us bulk send PMs with one unique license key per message, or create private fields that only the user can see on their account. That seems like the gap right now.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 18, 2016, 10:46pm UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/4 "2016-01-18T22:46:25Z")

</div>

I know @techapj has worked on projects similar to this, perhaps he has suggestions?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [February 18, 2016, 8:44am UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/5 "2016-02-18T08:44:11Z")

</div>

Just to come back to this, we kicked off a new competition this week appear to be seeing a fairly high abuse rate for the first time.

Up to 10% of entrants have submitted images of text, rather than a text response. Before I bring the hammer down on them I should probably check, is there anything within Discourse that could do this?

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [February 18, 2016, 10:32am UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/6 "2016-02-18T10:32:02Z")

</div>

In some cases, pasting stuff from rich-text editors can do this. What you see below the line is text I wrote in OneNote, copied and pasted to Discourse:

* * *

![](https://global.discourse-cdn.com/meta/original/3X/a/8/a803146fafe3456c36ce789ad973174832aa4288.png)

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [December 4, 2025, 11:37am UTC](https://meta.discourse.org/t/sending-users-unique-messages-or-populating-private-custom-fields/33770/7 "2025-12-04T11:37:01Z")

</div>


