Conditional Privacy Rule

Hi everyone!

I need to show the email of the user to other users, according to a election from the user.

So, I create a Field ‘yes/no’ in the User. When the field is yes, the email of the user can be seen by other users, when no, cannot be seen.

The problem is in the Privacy Rules section. In the ‘eveyone else’ part I can only select one option, if the email is private or no.

How can I make it?

Thanks!!

You could just define a whole new privacy rule just for that situation?

When you create a privacy rule you can set the conditions and then you tick which fields apply to that.

You need to flip your thinking around


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

Hi, thanks for your answer.

But the problem is that the new rule, doesn’t change the “eveyone else” section. The new rule only “works” for the same user. But, the section “everyone else”, is the same. So, I can select only between allow everyone to see, or not to see

I don’t have problems to do the “show function” in the design of the page. Because I can create a text element (of the email), and make a condition of don’t be visible. But, the problem with this is that I’m not making the user email private really.

So you’d need to be prescriptive about who those users are to set it like that. But you can use things like This user is logged in or This user is logged out and that’s pretty much everyone else.

Otherwise you just allow it in everyone else and then manage access on the front end. I’d probably just do it like this…


Josh @ Support Dept
Helping no-code founders get unstuck fast :rocket:save hours, & ship faster with an expert :man_technologist: on-demand

Ok, I will see how can I do it, thank you!

1 Like

Create a privacy rule for the User type using a condition on “*this user”" instead of “current user”. Something along the lines of: when “this user’s elected is yes” then show the “email” to everyone.

I tried something like that, but didn’t work.

As you can see, the new rule, doesn’t allow me to change the ‘everyone else’ section

Try adding something like “and current user is logged in”

Hi there, @francochapa01… I’m not trying to muddy the waters here, but the rule you are showing in your screenshot should work. How do I know? I literally just tested it. :slight_smile:

If you have User 1, User 2, and User 3, and User 3’s field is set to yes, you want User 1 and User 2 to be able to see User 3’s email, right? If that is the case, then as I said, the rule you are showing should do the trick, and you shouldn’t need to mess with the Everyone else section.

Any chance you have other privacy rules configured that could be getting in the way?

Best…
Mike

1 Like

Thank you so much for taking your time to respond.

Yes, I have other privacy rule configured. The other privacy rule is ‘This user is Current User’ and checked ‘view all fields’. So, In the ‘everyone else’ I deschecked the fields not visible for the other users.
Maybe here I have a problem

It sounds like there could be a conflict, but without being able to see your exact configuration and play around with it, it’s hard to tell.

Edit: to be clear, the This User is Current User rule shouldn’t necessarily be causing a conflict. If you are able to share a view-only link to your editor, I’m sure we can figure out what’s going on.

I’m sengind the privacy rules for User

  1. This is the first privacy rule

  2. After that I create the ‘everyone else’

  3. Then, with the recommendation that you make me here, this is the Rule:

I just updated my example with those exact settings, and it appears to work. I thought it might be related to not having Find this in searches checked for the showEmail rule, but that doesn’t appear to matter because you are allowing everyone else to find users in searches. Are you sure your data matches with the results you are expecting to see?

Yes I try again and didn’t work.

When I’m logged in as the user, I can see the email in his profile page.
When I’m logged out, or logged in with other user, I cannot see the email.

Anyways, thank you so much for your time. I’ll figure out what’s going wrong.