# Using Data Explorer to take action if an admin reads a user private message

**URL:** <https://meta.discourse.org/t/using-data-explorer-to-take-action-if-an-admin-reads-a-user-private-message/154119>\
**Category:** Data & reporting\
**Tags:** sql-query\
**Created:** [June 7, 2020, 7:10pm UTC](https://meta.discourse.org/t/using-data-explorer-to-take-action-if-an-admin-reads-a-user-private-message/154119 "2020-06-07T19:10:42Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sunjam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sunjam/32/175682_2.png) [@sunjam](https://meta.discourse.org/u/sunjam)\
**Post date:** [June 7, 2020, 7:10pm UTC](https://meta.discourse.org/t/using-data-explorer-to-take-action-if-an-admin-reads-a-user-private-message/154119/1 "2020-06-07T19:10:42Z")

</div>

Continuing the discussion from [How to run Data Explorer queries with the Discourse API](https://meta.discourse.org/t/how-to-run-data-explorer-queries-with-the-discourse-api/120063/35):

I’m curious about a [data explorer](https://meta.discourse.org/t/32566?silent=true) custom action for notifying all `@staff` or `@admin` group every time one of them reads the contents of a user private message, or notifies by creating a post in our `#staff` category. I’m new to [Data Explorer](https://meta.discourse.org/t/32566?silent=true), but it does seem awesome!

---

_[View the full topic](https://meta.discourse.org/t/using-data-explorer-to-take-action-if-an-admin-reads-a-user-private-message/154119)._
