Sharing data type entries (Privacy settings)

Hi,

I have a data type which looks like this:

Different user can store their records in this data type. To keep each users entries hidden from the eyes of other users, I have set up the privacy settings like this:

That works pretty well.

In a second condition however, I would like to give the user the option to share their records with other users. Therefore, each user can store a list of other user’s email addresses in their records (“share_with”).
Unfortunately, the privacy setting doesn’t work as I would expect:

What am I missing here? Does anyone have an idea how to solve this issue?

Hi there, @mirko.heimburger… the expression you are showing in the last screenshot should work if the field type of the Share_With field is a List of Users, but I’m guessing yours is a List of texts? If that is the case, you probably want to delete your Share_With field and replace it with a field that is a list of users.

Best…
Mike

1 Like

Hi Mike,

Thank you for the hint. That was the solution to the problem. :smiley: :+1:

Although I am now close to getting the share function running, I still have one last problem. I had the idea to add a contact list/address book where the user can add some email addresses of his/her contacts.

These addresses should be stored in a data type called “Kontakliste” (“contact list” in engl.). And this works pretty well as long as they get stored as ‘text’. However, I need to store them as type ‘user’ in order to use them for privacy/sharing purpose.

This is how the workflow looks like:

And this is the data type:

Is there a way to let the user enter email addresses which then can be stored as users?
I tried something like this as well:


In this case, bubble compares the user input with the email addresses of all users. But it doesn’t work either.