Privacy rules doesnt add up

hi guys im having a big issue with my privacy rules that i can get to work as i want to with one function

when i have the ruleset like this im able to see the list of the employees there is registred to this user

but it also result in that when a new user gets created he other users personally data in his backoffice


but when i then have this privacy rule instead the personal data for other users is hidden but im not able to see the list of employee the is added to the user and just get empty lines for them

What are you trying to do?

If you want the User to only be able to see the Data (of that type) that they have created (as your privacy rule name implies) then the rule should be:

this thing's creator is current user

In this case its not a thing with a creator.. when a user sign up they have the option inside there backoffice to sign up user on behalf of other there then will be employees of the main user.. so they are listed on a field as current users employees..

But my issue is that i cant figure out how to define a privacy ruke there both protects the users data from other user in the db but also allow them to see the employees data

Well, if it’s a list field on the User, you can use

Current User's Employees contains This Thing's Employee

What rule should i then use to protect users data for other user?

current user’s employees contain this user’s employees

The manual has some good guides on privacy rules and I recommend any videos by Matt Neary about them on Youtube.

Once you have set a privacy rule, the data becomes hidden by default unless it matches a conditon you have set, then it can be seen
You can simply use this condition, “when user’s invitee(employees) contains current user”, then you tick whatever option you want to be visible
Another thing is how you are structuring your database, based on your explanation. I think the user datatype will have a datafield of a list of users(employees)

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