<@!457164914608308235> yes, you can do so by defin...
# spicedb
j
@User yes, you can do so by defining a role in the Authzed Schema: https://docs.authzed.com/reference/schema-lang. For example, if you wanted to have two roles (
reader
and
writer
) on a resource such as a
document
, you'd do:
Copy code
definition user {}

definition resource {
  relation reader: user
  relation writer: user

  permission view = reader + writer
}
here, the permission to
view
a document is defined as any users that are either
reader
or
writer
(or both), which form the roles you want