# Creating a User - Tag relation plugin

**URL:** <https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208>\
**Category:** Development\
**Created:** [August 5, 2022, 10:02am UTC](https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208 "2022-08-05T10:02:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![attj](https://avatars.discourse-cdn.com/v4/letter/a/a698b9/32.png) [@attj](https://meta.discourse.org/u/attj)\
**Post date:** [August 5, 2022, 10:02am UTC](https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208/1 "2022-08-05T10:02:14Z")

</div>

Hello, I am currently working on a specific plugin but couldn’t figure where to start yet (I read the introductory material here and installed some simple plugins and played with their source a bit).

**The setup:** I have a csv file that contains several usernames from the system and some tags they are related to. For example, an entry “user1, tag#1” reads: “user1 knows about tag#1”. Many users can be related to one tag and one user can be related to many tags. Moreover, this csv will be updated time to time (once almost everyday). The file is in the same server that hosts the discourse instance.

**How would the plugin ideally work:** I will explain this using an example csv and a picture.

CSV:

userOP, tag#1  
userOP, tag#2  
user2, tag#1

Given this CSV, whenever there is a topic created with any of the tags included in the CSV (The topic author might not be on the list). The ideal output should be as follows:

 ![New Project-6](https://global.discourse-cdn.com/meta/original/4X/2/7/e/27edf2181b0fbcdefcee6ccc0ccec694d54e22ad.png)

Moreover a user can see their known tags as clickable links on their user panel with an additional tab called Known Tags:

 ![Screenshot 2022-08-05 at 16.44.01](https://global.discourse-cdn.com/meta/original/4X/8/b/d/8bd4688ee86fd104efc2f38f660ee8b90b33008b.png)

Ideally, this tab should be quickly accessible by the top left menu:

 ![Screenshot 2022-08-05 at 16.45.06](https://global.discourse-cdn.com/meta/original/4X/2/2/4/2246920fe12a8dabe3f8e336ac198e8d5b8ca9ec.png)

That is, based on the relation defined in the csv, there should be small text or a badge for any user (OP or others) that posts under the topic with a tag they are related.

I am open to suggestions about how to accomplish this.

---

_[View the full topic](https://meta.discourse.org/t/creating-a-user-tag-relation-plugin/235208)._
