Back

permission: any team, specific role

  • 0
  • Teams
Alfredo
18 Jan, 2024, 22:18

Hi, How do we setup a permission for any team with specific role? I am trying to do this on a document level security:

team:any/shipments-read

but it is not working.

As a test, I created another team with id: any (I already removed it) just to validate it, I was expecting to get an error because "any" keyword is supposed to be a wildcard, but I was able to create it, so this makes me wonder the usage for this permission.

TL;DR
Developer is trying to set up a permission for any team with a specific role, but it is not working. They tried using "team:any/shipments-read" but it did not work. They also tried creating a team with the ID "any" but it did not give an error. They are questioning the usage of this permission. The issue is that the correct syntax for a wildcard is just "any" without the "team:".
Alfredo
18 Jan, 2024, 22:20

this is one team with shipments-read role

ideclon
18 Jan, 2024, 22:21

I think it’s only a wildcard if it’s just ”any”? Not a team called “any”

Alfredo
18 Jan, 2024, 22:22

let me try that

Alfredo
18 Jan, 2024, 22:23

didn't work

Alfredo
18 Jan, 2024, 22:25

the "any" team, was already removed, that was an extra validation, I was expecting to have an error, but I was able to create a team with that Id (any)

Alfredo
18 Jan, 2024, 22:26

this one is not working neither: team/shipments-read

ideclon
18 Jan, 2024, 22:29

You’re missing the team: here

Alfredo
18 Jan, 2024, 22:30

I already tried with team:, please see my first screenshot in first post

ideclon
18 Jan, 2024, 22:31

Oh, I see - were you expecting to be able to say “this role in any team”?

Alfredo
18 Jan, 2024, 22:31

correct

ideclon
18 Jan, 2024, 22:32

No, as far as I’m aware,that’s not currently supported

Alfredo
18 Jan, 2024, 22:32

ok, I will try to do it in other way, I will think about it, thanks for your help

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more