How To Setup Privacy/Security For User Data?

I have “managers” that are a boolean yes/no that should be able to access any file/user/data inside the app, when logged in and manager= ‘yes’

But what is the difference between ‘current user’ and ‘this user’ ?

image

I’m trying to figure out how to block everyone from viewing users and other data within the app now, restricting them to Things they’ve created, and only their own personal user data…

Difficult to understand without breaking the app!

  • Current User = the person currently using your app.

  • This User = the specific record that is being accessed.

Try setting up a privacy role for a different data type than user and the difference will become a bit easier to digest. (Ex. say you have the data type “Blog Post”, it’d say “This Blog Post”)

To add, remember that privacy roles should be established for all necessary data types that require some permissioning of when a user should be able to access it, not just on the user table. (Ie. creating a privacy role on your User table only restricts data within the user table. Not the other tables in your database).

4 Likes

So just as an example, how can I/would I prevent the current user from viewing data on any other user via search?

If the goal is prevent, the most basic thing is to uncheck all of the “Everyone else” boxes and to set up a privacy role of “This User is Current User”

1 Like

Is there a way to check to see if there are any conflicts once I’ve set this?

Manual checks and tests are typically what I default to (ie. creating a sandbox page where I intentionally test the privacy roles). Inspect mode is helpful for showing what data Bubble did (and, more importantly) didn’t retrieve based on privacy roles.

This topic was automatically closed after 70 days. New replies are no longer allowed.