# Using setMetaDataFilterWithKey to filter group channel list

**URL:** <https://community.sendbird.com/t/using-setmetadatafilterwithkey-to-filter-group-channel-list/4148>\
**Category:** iOS\
**Tags:** ios, uikit, question\
**Created:** [March 10, 2022, 9:25pm UTC](https://community.sendbird.com/t/using-setmetadatafilterwithkey-to-filter-group-channel-list/4148 "2022-03-10T21:25:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![astejlborg](https://avatars.discourse-cdn.com/v4/letter/a/c37758/32.png) [@astejlborg](https://community.sendbird.com/u/astejlborg)\
**Post date:** [March 10, 2022, 9:25pm UTC](https://community.sendbird.com/t/using-setmetadatafilterwithkey-to-filter-group-channel-list/4148/1 "2022-03-10T21:25:41Z")

</div>

Hi

I’m using setMetaDataFilterWithKey to make a filter for the SBUChannelListViewController. But when opening the view controller, it shows all the channels (for the current user). If I try with other filters like channelUrlsFilter, it only shows that channel (as expected).

The code:

```auto
let query = SBDGroupChannel.createMyGroupChannelListQuery()
query?.setMetaDataFilterWithKey("identifier", values: ["1000234236"])
let viewController = SBUChannelListViewController(channelListQuery: query)

```

---

<div class="post-metadata">

**Author:** ![Dhaval\_Patel](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/dhaval_patel/32/1956_2.png) [@Dhaval\_Patel](https://community.sendbird.com/u/Dhaval_Patel)\
**Post date:** [March 11, 2022, 5:36pm UTC](https://community.sendbird.com/t/using-setmetadatafilterwithkey-to-filter-group-channel-list/4148/2 "2022-03-11T17:36:22Z")

</div>

Hi Allan,

Can you please share the SDK and UIKit versions that you are currently using, so that we can check and investigate further. Meanwhile, if you have any other questions please let us know.

Best,  
Dhaval.
