Is it possible to grab a users submitted data as an admin?

Hello,
I wanted to ask the forum something ive been trying to figure out for a while now, and for context im building a website that would allow individuals to submit a referral forum. Currently I have 2 user data types, one is user and one is admin. Ive successfully been able to allow users to view their own submission, and also successfully allowed Admins to view ALL submissions.

The issue im having is, im trying to refine the admin side, to allow the admin to click on a specific user and see all of their own submission, not everyone elses. I cant use “current user” as it will try to grab the admins ow n submission rather than the user its trying to see. Was wondering if this is even possible on bubble and if so how?

For context ive added a screenshot. When I have a user, I want to click the button ( User Data ) and I want only that users referral submission.

Screenshot 2023-12-04 195442

I appreciate for any help I can get on this!

In the privacy rules, make sure that the admin can see all the user’s data.

You can probably set up something like this in the user data type : when current user’s role is admin

Lastly, where do you redirect an admin if they click the user data button? Do you show the data in a popup or a separate page / group? You just simply need to set the data source of those containers to be the user’s data.

Thanks for the reply!
I’ve already had the privacy rules and data type implemented, but for the last paragraph to answer your question, i’ve created a popup which does a search in the “user data” ( All of the referrals database ) it shows everyone’s submission. Not exactly sure im following exactly what you meant before, please let me know! Ill also attach screenshots.


For example, the user “Google Login” when I click Users Data, it shows Referral data than in the entire data base. This “account” is new so what I want is when I ( admin ) click Users data it will only show “google logins” referrals. ( For clarity this page is entirely available for Admins only )


If you just want to show all the user data of a user, you must find a way to connect the user data to a user

Atm, you’re only searching for all user data

You can either add a list of user data in the user field or add a user field to the user data

After that, you can just search for all user data with a constraint of user

Figured another way but does the same thing, Thank you so much for all the help!

1 Like