Back

Team roles optional privilege access

  • 0
  • Teams
Mosh Ontong
10 Jul, 2023, 23:13

Does the team roles have field that this role have this particular access, we can compare it to the discord role system, we can dynamic create role name and set a privilege access for this role.

TL;DR
The support thread is discussing team roles and privilege access in an application called Appwrite. The main points mentioned are: - Roles in teams only have meaning if you decide to give them power. - You can add permission to a given collection for a certain role, but you can't give a role global permission for anything. - The permission module works from inside-out, meaning permissions need to be added to specific resources. - Roles in Appwrite are arbitrary and only have power when you decide so. - If a collection is allowed for a specific role, any user with that role can access the collection documents. - Specific roles can have pre-d
Binyamin
11 Jul, 2023, 00:05

Roles in Appwrite are pretty arbitrary, which means that they only have power when deciding so.

It can works only one-way, meaning, if for example you've set one collection to be allowed to a specific role then any user with that role will be able to get the collection documents.

But, it can work backward when you can decide the specific role has specific pre-determined permissions.

Mosh Ontong
11 Jul, 2023, 01:08

Sorry I do not understand

Binyamin
11 Jul, 2023, 01:10

Roles in teams have meaning only if you decide so. You can add permission to a given collection for a certain role. You can't give a role global permission for anything.

The permission module works only from inside-out, meaning you'll need to add the permission to a given resource. And you can't use the permission in outside-in logic so a given role can do whatever they want.

Mosh Ontong
11 Jul, 2023, 01:10

Ok I got it, it means that I should have collections for the roles

Binyamin
11 Jul, 2023, 01:10

Is this make sense?

Mosh Ontong
11 Jul, 2023, 01:10

thank you

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