https://authzed.com logo
Title
c

caiokf

10/17/2022, 10:47 PM
Hi, given the schema:
definition group {
    relation owner: user
    relation member: user | group#member

    permission can_edit = owner
    permission can_view = owner + member
}
Any ideas on how to create a relationship
groupA#member@groupB#member
, using the authzed client libs? If I try a subject with id
groupB
, I get:
… object_id:"groupB" is not allowed as the subject of namespace …
If I try a subject with id
groupB#member
, I get:
message failed validation 
| caused by: invalid Relationship.Subject: embedded message failed validation 
| caused by: invalid SubjectReference.Object: embedded message failed validation |
 caused by: invalid ObjectReference.ObjectId: value does not match regex pattern "^(([a-zA-Z0-9_][a-zA-Z0-9/_|-]{0,127})|\\*)$