https://authzed.com logo
Title
j

Joey

09/17/2021, 2:37 PM
@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:
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