# Stumped by simple database problem: displaying logged in user data

**URL:** https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738
**Category:** Get Help
**Created:** [May 2, 2022, 3:30pm UTC](https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738 "2022-05-02T15:30:32Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DaBoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/daboo/32/18802_2.png) [@DaBoo](https://forum.adalo.com/u/DaBoo)
#### Post date: [May 2, 2022, 3:30pm UTC](https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738/1 "2022-05-02T15:30:32Z")

</div>

I spent untold hours yesterday trying to work out how to display only ‘the logged in user’s’ data. The issues is explained really well here https://forum.adalo.com/t/how-to-have-multiple-users-on-one-database-but-each-user-only-sees-their-own-content/19844 but for the life of me I can’t get it to work.

I have the standard database of **users** , then a database of **player names** which are linked through a One [user] to Many [players] relationship. I’ve tried every other type of relationship too out of sheer frustration.

When I filter a list for ‘all players’ naturally every player in the database shows up:

 ![1](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/d/7d81dc2e175dc239a1e9307e582d5da57a8bb34b.jpeg)

But when I filter the list for logged in users nothing shows up:

 ![2](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/7/d7122ed44d0cd7214df04e3f90138ab3f2840f95.jpeg)

Likewise, when I try to use random picker to choose one from among the **Player** list I get an error message if filtering for ‘logged in users’ and a selection from all **Players** when not. The purpose is to choose turn-taking in a face to face educational game.

What am I doing wrong?

Here’s a link to the app: [https://previewer.adalo.com/c0620692-8a5c-4175-92c1-bc51c78cbc9f](https://previewer.adalo.com/c0620692-8a5c-4175-92c1-bc51c78cbc9f)

Here are the settings for the list:

 ![4](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/7/c/7c9c9e6848ba598c45d4e6da60fdfa1d0509ae04.jpeg)

---

<div class="post-metadata">

### Author: ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)
#### Post date: [May 2, 2022, 4:25pm UTC](https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738/2 "2022-05-02T16:25:12Z")

</div>

Hi @DaBoo,

In your Create Player action you have added Logged in user to that relationship field right?

Is it possible to enable cloning for the app to clone the app and see?

Thank you

---

<div class="post-metadata">

### Author: ![DaBoo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/daboo/32/18802_2.png) [@DaBoo](https://forum.adalo.com/u/DaBoo)
#### Post date: [May 2, 2022, 4:45pm UTC](https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738/3 "2022-05-02T16:45:04Z")

</div>

Genius, as usual @Dilon! That’s the part I overlooked. It works like a charm now!

 ![5](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/5/e/5e82e09fdcec1a9ccd12b4dc72a1fa7c321caacf.jpeg)

I hope this can serve as a help to others who get stuck on this point.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)
#### Post date: [May 12, 2022, 4:45pm UTC](https://forum.adalo.com/t/stumped-by-simple-database-problem-displaying-logged-in-user-data/26738/4 "2022-05-12T16:45:49Z")

</div>

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