Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to model indirect relationship that depend on an attribute? #134

Closed
juanjoDiaz opened this issue Apr 7, 2023 · 0 comments
Closed

How to model indirect relationship that depend on an attribute? #134

juanjoDiaz opened this issue Apr 7, 2023 · 0 comments

Comments

@juanjoDiaz
Copy link

juanjoDiaz commented Apr 7, 2023

Hi,

Thanks for the great work on OpenFGA!

I'm evaluating adopting it and there is one particular use case that I can figure out: How to model indirect relationships that depend on an attribute?

Let's use the Google Drive example: you have users, folders and documents.
By default, when you have access to a folder, you have access to all the folders inside it.
I want to have a setting at folder level to enable visibility of subfolders, i.e.
Folder A is inside folder B and folder B has "subfolder visibility" set to true.
User X has access to Folder B. Thus, user X has access to folder A.
Folder B "subfolder visibility" set to false.
User X has access to folder B contents but it has no access to folder A contents.

Could this be modelled with the current version of OpenFGA?

@juanjoDiaz juanjoDiaz changed the title How to model indirect relationship that depends on an attribute? How to model indirect relationship that depend on an attribute? Apr 7, 2023
@aaguiarz aaguiarz transferred this issue from openfga/openfga Apr 10, 2023
@openfga openfga locked and limited conversation to collaborators Apr 10, 2023
@aaguiarz aaguiarz converted this issue into discussion #135 Apr 10, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant