https://authzed.com logo
#spicedb
Title
# spicedb
j

Joey

03/08/2022, 9:34 PM
Copy code
definition user {}

definition group {
    relation member: user | group#member
    permission membership = member
}

definition resource {
    relation inherit: resource

    relation reader: user | group#member
    relation writer: user | group#member
        relation noaccess: user

    permission read =  (reader + inherit->reader) - noaccess
    permission write = (writer + inherit->writer) - noaccess
}
2 Views