File access for logged out users

Hello. Please can you help me. I got data type called “document”, that stores my files. There is a field called “Anyone with the link” and i want data to be accessible for logged out users when this field is “true”. I did privacy rule that allows everybody to access the document but it’s not working for logged out users. Is there a way to set privacy rules for logged out users?

Thank you for help

Make sure you do not check “Private” when upload the file

but i need the file to be private unless it’s privacy field set to “anyone with the link”

1 Like

Hello, I’m not sure this is the solution but I needed a “current user is logged out” condition elsewhere before. Somehow this condition can not be written in some expressions but it can be coppied from somewhere else.

Try to create any of workflow block and in the “only when” input, select “Current User is Logged Out” and copy this expression (you can delete this workflow later). Then, you can paste this expression to rules’s When input to create something like “Current User is Logged Out and This Document…”

I hope this works for you

1 Like

Wow, you are amazing! It’s working, i am really grateful for the hack!

1 Like

When you mark a file as private that file only can be accessed for current user, idk how you can customize this behavior, because if a user have the direct link of file he can access the file anyway

You should attach file to a thing when making it private. And then you can set who can has access to that thing by privacy rules.