#Users with a label cannot give read permission to a user with a different label

4 messages · Page 1 of 1 (latest)

sage solar
#

User A with a label (x) is creating a document and wants to give read permission to user B with a label (y) while creating the document. returning 401

[ Permission.read(Role.user(B)), Permission.read(Role.user(A)), Permission.delete(Role.user(A)) ]

sage solar
#

any help fellas

dark pewter
# sage solar User A with a label (x) is creating a document and wants to give read permission...

A project user can only grant permissions to a resource that they own. For example, if a user is trying to share a document with a team that they are not a member of, they will encounter a 401 not authorized error. If your app needs users to grant access to teams they're not a member of, you can create Appwrite Functions with a Server SDK to achieve this functionality.

See https://appwrite.io/docs/advanced/platform/permissions

sage solar
#

but that part regarding teams, not label or is it the same?
in this case, User A is the owner of the document and he want to share with other user.