# Possible to use the group select ui in a plugin?

**URL:** https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082
**Category:** Development
**Created:** [9월 15, 2017, 12:03오전 UTC](https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082 "2017-09-15T00:03:41Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![eriko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eriko/32/1915_2.png) [@eriko](https://meta.discourse.org/u/eriko)
#### Post date: [9월 15, 2017, 12:03오전 UTC](https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082/1 "2017-09-15T00:03:41Z")

</div>

I have a case where I want to be able filter actions in a plugin based on a users group membership. In the ui of the plugin I would like to use the auto complete and list limits of the existing ui for setting a users group membership. I could just use a list and hope the people get the names correct but I would like to do better than that.

Any thoughts? Thanks.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [9월 15, 2017, 7:44오전 UTC](https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082/2 "2017-09-15T07:44:47Z")

</div>

Anything is possible in a plugin 😉

---

<div class="post-metadata">

### Author: ![eriko](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eriko/32/1915_2.png) [@eriko](https://meta.discourse.org/u/eriko)
#### Post date: [9월 18, 2017, 4:42오후 UTC](https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082/3 "2017-09-18T16:42:05Z")

</div>

I will be honest I was hoping for an example of cribbing existing ui elements into a plugin.

---

<div class="post-metadata">

### Author: ![LeoMcA](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leomca/32/87233_2.png) [@LeoMcA](https://meta.discourse.org/u/LeoMcA)
#### Post date: [9월 18, 2017, 4:49오후 UTC](https://meta.discourse.org/t/possible-to-use-the-group-select-ui-in-a-plugin/70082/4 "2017-09-18T16:49:58Z")

</div>

1. Find a page in core which is using that UI element
2. Take a look at the handlebars template which creates that page
3. Hope the element is created using a handlebars helper (it usually is)
4. Use that helper in your plugin (occasionally also including some logic in the controller)
5. Success
