Show data to a temporary user

I have a page that displays data from a database table. This table has privacy rules applied.
At the end of a backend workflow, I want to send an email to that page to a receiver. That receiver is not a registered user in our app. And he should only see specific data. So what I currently try to build:

  • the data displayed on the page has a Slug (which is also part of the URL in the email)
  • on page load, set current user’s slug (of the temporary user) to the Slug from the URL
  • privacy rule for the “Current users slug is this table’s Slug”

But somehow this does not work and the page is always empty. I have tried multiple configurations but always fail. Has anyone an idea how to handle this scenario?

Let’s try something:

put a text element on the page that displays “current user’s slug” and see if it actually has data

1 Like

The temporary user is that … temporary.

If I recall correctly a temporary user is that to Bubble for about 3 days.

Consider creating an object for this authentication need and show a unique ID in the url which would be more reliable to parse for Bubble.

As for privacy rules and such it is a great approach by @hi.luisacosta to suggest seeing the info … or not … on a page. I would add to do this on a clean test page that way you can isolate any other page redirection logic that may intrude (if you built something in your header as an example).

Hopefully the above makes sense :slight_smile:

2 Likes

Thanks to both of you!

What got me stuck was that we did not have cookies enabled - without cookies temporary users do not work at all.

2 Likes

can you expand on this? so if a user does not have cookies for their browser enabled, then temp user cannot be created. on the flip if user does have cookies enabled, temp user is created?