ganncamp is looking for a way to send a message only to users with Trust Level 2 (TL2), without including TL4 users who are also part of the TL2 group. However, simon notes that there is no built-in feature in the Discourse user interface to achieve this.
As a workaround, simon suggests clicking on the number link from the “Users per Trust Level” section of the admin dashboard, which takes you to a list of users with the desired Trust Level 2 status. From there, you can export the list and use the email addresses to send messages to the users from an external service.
There is nothing in the Discourse user interface that I am aware of that will allow you to send a PM to a trust level group while excluding users who have achieved a higher trust level. The best approach that I can come up with is to click the number link from the “Users per Trust Level” section of your site’s admin dashboard:
For example, clicking the “5” link for the Trust Level 2 entry in the above screenshot takes me to my site’s /admin/users/list/member page. It shows a list of users who have the Trust Level 2 (Member) status and excludes any trust level 3 and 4 users on my site. The easiest way to target these users with a message would be to click the “Export” link from the users page, then use the email addresses from the results that are returned to send emails to the users from an external service.