Back

Custom permission for Member of Organization

  • 0
  • Users
  • Accounts
  • Teams
  • Web
Tengo
18 Jun, 2023, 13:36

I need help in setting up individual project permission for individual members of Organisation.

Let us take an example:- I have 1 organization in which 2 members and 2 projects i want 1 of the member to only see 1 project. Can any please help me?

TL;DR
The user is asking for help in setting up individual project permissions for members of an organization. Currently, Appwrite only allows permissions based on teams within an organization, so the user wants to know if it's possible to add project-level permissions through code. The suggested solution is to create two organizations, each with their own projects and members with specific permissions. No solution is provided in the support thread.
Binyamin
18 Jun, 2023, 15:15

Are you referring to Appwrite console?

If so, permission is based on organization So in your use-case you'll probably need to have 2 organizations.

Tengo
18 Jun, 2023, 17:38

Yes, This is on console level, and Yes, This is one of the solution, But Is it possible to add this permission of project level by function or by code?

Binyamin
18 Jun, 2023, 18:10

There's no direct way for managing projects, you can use the internal cli-sdk https://github.com/appwrite/sdk-for-cli

Binyamin
18 Jun, 2023, 18:10

But still I don't think it will let you achieve the project-based permissions.

Binyamin
18 Jun, 2023, 18:14

Also, if you want to deep dive into it, Take a look here https://github.com/appwrite/appwrite/blob/master/app/controllers/api/projects.php This is what the cli sdk and the console uses to manage projects.

As of now projects get permission by team and all members within an organization are in the same team.

Drake
19 Jun, 2023, 02:19

You might want to πŸ‘ and comment about your use case here: https://github.com/appwrite/appwrite/issues/3756

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