# Automatically send private message when users reaches a new trust level

**URL:** <https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095>\
**Category:** Feature\
**Tags:** completed\
**Created:** [January 26, 2018, 2:46pm UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095 "2018-01-26T14:46:28Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)\
**Post date:** [January 27, 2018, 8:37am UTC](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095/7 "2018-01-27T08:37:32Z")

</div>

> [@cryptominded](#):
>
> is there any way to retrieve a user’s trust level through JS so that we could assign a css class to the \<html\> tag

It should be doable as a plugin if it doesn’t happen in Core. I think you could assign any currentUser property to any tag’s attribute. This is old, crude and not recently tested, but it might help as a start  
[https://github.com/Mittineague/test-plugin](https://github.com/Mittineague/test-plugin)

---

_[View the full topic](https://meta.discourse.org/t/automatically-send-private-message-when-users-reaches-a-new-trust-level/79095)._
