Hi 👋 Wondering about a specific pattern. Say we ...
# spicedb
r
Hi 👋 Wondering about a specific pattern. Say we wanted to warn users before someone lost access to an object that they depend on: 1. A user gives access to an object to user:1 and team:1 (the relationships
user:1#access@object:1
, and
team:1#access@object:1
are created) 2. User:1 is added to Team:1 (user:1#member@team:1) 3. User:1's access is removed from the object - but they still have access because they are part of the team. (the relationship
user:1#access@object:1
is removed) Is there a way to make a change "temporairly", and then test what would be the consequences? In this case, for example, remove the
user:1#access@object:1
relationship and then return what are all the users that have access to
object:1
? To make sure that
user:1
still has access to the object. If not, how would you do something like this? Keep track of the relationships on the service side?
2 Views