Hey folks,
What is the advice to implement workspaces (think of Slack, Figma, notion...) in Spicedb?
I would basically want to do something like, give me all the documents
in this workspace that user can access. I can use caveats, but the [documentation discourages their usage](
https://authzed.com/docs/spicedb/modeling/attributes)
> In almost all cases, caveats should only be used when data required to evaluate a CheckPermission request is only available at the time of the request (e.g. user's current location or time of day). Using caveats for static data (e.g. a document's status) can have negative performance impacts. Static attribute data should always be modeled in the schema using patterns similar to those described above.
Alternatively, I can use a specific user per workspace. But then, it's hard to keep the correct status up to date. For example, groups
cheers