Restricts list-objects results from a part of hierarchy in case of Parent-Child Hierarchy between types #313
prakashsatyani
started this conversation in
Ideas
Replies: 2 comments
-
|
+1 @prakashsatyani do you found any solution? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@prakashsatyani - one way would be to add a contextual tuple to specify what folder you're concerned about, and a relation that builds on the can_view permission and takes that folder in context into consideration For example: The result should be: $ fga model test --tests=./store.fga.yaml
# Test Summary #
Tests 1/1 passing
ListObjects 2/2 passing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
There isn't any way to restrict your results in case of parent-child hierarchy. I have a folder structure here and I want to restrict the results of

list-objectsbased on a certain child objects. For example, here I want to list all the folder a particular user has read access to but the results should be from all the folders underclientsfolder only and not from the entire folder hierarchy.Beta Was this translation helpful? Give feedback.
All reactions