# Exclude current user in a list of user

**URL:** <https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398>\
**Category:** Need help\
**Created:** [September 19, 2019, 7:42am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398 "2019-09-19T07:42:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![asyraf.adlan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/asyraf.adlan/32/46860_2.png) [@asyraf.adlan](https://forum.bubble.io/u/asyraf.adlan)\
**Post date:** [September 19, 2019, 7:42am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/1 "2019-09-19T07:42:13Z")

</div>

i tred to exclude current user in a list of user database in a repeating group. apparently bubble doest allow me to use \<\> when i select unique id is the constraint field. how do go around this?

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [September 19, 2019, 10:14am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/2 "2019-09-19T10:14:33Z")

</div>

I believe your unique id is not of type user.  
Bubble does allow \<\> current user, so you should be able to add a constraint to your RG as follows:  
 ![16%20AM](https://us1.discourse-cdn.com/bubble/original/3X/b/3/b3bf3da6f1ea2d952224e55e04201f8abab70b53.png)

---

<div class="post-metadata">

**Author:** ![asyraf.adlan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/asyraf.adlan/32/46860_2.png) [@asyraf.adlan](https://forum.bubble.io/u/asyraf.adlan)\
**Post date:** [September 19, 2019, 11:15am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/3 "2019-09-19T11:15:52Z")

</div>

right now im using user’s name \<\> current user as a constraint. which i think is not strong enough. any suggention? @SerPounce

---

<div class="post-metadata">

**Author:** ![SerPounce](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/serpounce/32/62068_2.png) [@SerPounce](https://forum.bubble.io/u/SerPounce)\
**Post date:** [September 19, 2019, 12:50pm UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/4 "2019-09-19T12:50:55Z")

</div>

Check your issue list. That is probably being flagged as an issue as you are comparing two different types in the constraint. User name is type text and current user is type user.

The good news is that the easy fix is to either:  
User \<\> current user  
Or  
Username \<\> current user’s username

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [September 19, 2019, 12:53pm UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/5 "2019-09-19T12:53:08Z")

</div>

I suggest you to try this:  
Remove the constraint. Just get the user list you need.  
Once the user list is selected use :minus item current user

---

<div class="post-metadata">

**Author:** ![asyraf.adlan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/asyraf.adlan/32/46860_2.png) [@asyraf.adlan](https://forum.bubble.io/u/asyraf.adlan)\
**Post date:** [September 20, 2019, 10:48am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/6 "2019-09-20T10:48:50Z")

</div>

where whould i use this? custom state?

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [September 20, 2019, 10:49am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/7 "2019-09-20T10:49:35Z")

</div>

no. Directly in data source

---

<div class="post-metadata">

**Author:** ![asyraf.adlan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/asyraf.adlan/32/46860_2.png) [@asyraf.adlan](https://forum.bubble.io/u/asyraf.adlan)\
**Post date:** [September 20, 2019, 10:53am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/8 "2019-09-20T10:53:10Z")

</div>

it wont let me

![44%20PM](https://us1.discourse-cdn.com/bubble/original/3X/9/5/95ef1a09fbe0bf3c28ecab8c6ce5faa14400fe22.png)

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [September 20, 2019, 10:54am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/9 "2019-09-20T10:54:14Z")

</div>

Remove the Doesn’t contain  
Change to :minus item

---

<div class="post-metadata">

**Author:** ![asyraf.adlan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/asyraf.adlan/32/46860_2.png) [@asyraf.adlan](https://forum.bubble.io/u/asyraf.adlan)\
**Post date:** [September 20, 2019, 10:55am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/10 "2019-09-20T10:55:28Z")

</div>

ahh okay thank you!!!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 28, 2019, 7:42am UTC](https://forum.bubble.io/t/exclude-current-user-in-a-list-of-user/67398/11 "2019-11-28T07:42:13Z")

</div>

Closed on November 28, 2019, 7:42am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
