# Automatically filter by user

**URL:** <https://community.glideapps.com/t/automatically-filter-by-user/37596>\
**Category:** Ask for Help\
**Created:** [January 23, 2022, 10:38pm UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596 "2022-01-23T22:38:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [January 23, 2022, 10:38pm UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/1 "2022-01-23T22:38:09Z")

</div>

The pages app we are creating allows users who are grouped by organization to favorite items by organization, so that they have one page of all the items they have favorited.

With about a dozen organization it’s a little tedious to create 12 pages or to create one page with 12 different versions of the collection component, with each one having a filter that corresponds to “equals this organization’s favorites”. That may be the only way to do It (until there is a group by function in Pages), but is there another approach I should consider that would automatically filter the list based on organization? For example, I thought about using a choice component, but I think that would only work if I have 12 different list components so I’m back to the tedium of creating those (and adding new ones if we add more organizations).

Any thoughts?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [January 24, 2022, 12:07am UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/2 "2022-01-24T00:07:30Z")

</div>

Firstly, how are you creating the “favorite” function? Are you storing the data in a user-specific column?

If that’s the case, then only the signed-in user can view their favorites.

Else if you store the organization’s name to know they have favorited a certain item, you can filter by favorite list containing signed-in user’s organization name.

To do so, make sure you have user profiles set up.

> **[User Profiles](https://docs.glideapps.com/all/topics/security-and-user-data/user-profiles)**

---

<div class="post-metadata">

**Author:** ![Guillaume\_RABALLAND](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/guillaume_raballand/32/35847_2.png) [@Guillaume\_RABALLAND](https://community.glideapps.com/u/Guillaume_RABALLAND)\
**Post date:** [January 24, 2022, 12:15am UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/3 "2022-01-24T00:15:14Z")

</div>

Just for you to know (in addition to what @ThinhDinh said), you can also apply filters to the elements shown in a choice component

---

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [January 24, 2022, 1:31am UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/4 "2022-01-24T01:31:31Z")

</div>

Thanks for that tip. I hadn’t thought about that.

---

<div class="post-metadata">

**Author:** ![BLA\_68](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@BLA\_68](https://community.glideapps.com/u/BLA_68)\
**Post date:** [January 24, 2022, 2:06am UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/5 "2022-01-24T02:06:00Z")

</div>

It is not a user-specific column; it is essentially the latter approach you describe. But maybe not quite as straight forward. I’m realizing my subject line was a little misleading. I’m also realizing I may need to think a little bit more about the different ways this data may need to be viewed and come back to the question. Your idea has me rethinking my approach a little.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [January 25, 2022, 2:06am UTC](https://community.glideapps.com/t/automatically-filter-by-user/37596/6 "2022-01-25T02:06:24Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
