full-book-15949
08/09/2023, 11:41 PMfull-book-15949
08/09/2023, 11:53 PM{
"namespace": "Group",
"object": "blue-group",
"relation": "members",
"subject_id": "aran",
},
with
{
"namespace": "Group",
"object": "blue-group",
"relation": "members",
"subject_set": {
"namespace": "User",
"object": "aran"
}
},
is the advice, which adds namespace scoping information.
I don’t understand when I’d add a relation to the subject set and what it would do on a check.flat-garage-67035
08/10/2023, 7:43 AM{
"namespace": "Group",
"object": "blue-group",
"relation": "members",
"subject_set": {
"namespace": "Group",
"object": "red-group",
"relation": "members
}
},
This is kind of similar to the rules you provide with permits
in OPL (which are SubjectSetRewrites as I understand, creating such tuples implicitly for all Groups) but instead of being applied for all Groups it will only be applied to the specific one.
I don't really know if the empty relation is a special case for namespacing or if that makes sense if you look at it from set theory perspective (probably have to read the zanzibar paper to figure that out) but it seems if you are using OPL it is required to use subject_sets with empty relations instead of subject_id.