Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

馃殌 Feature: Console Roles #3756

Open
2 tasks done
patrice-blp opened this issue Sep 4, 2022 · 5 comments
Open
2 tasks done

馃殌 Feature: Console Roles #3756

patrice-blp opened this issue Sep 4, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@patrice-blp
Copy link

patrice-blp commented Sep 4, 2022

馃敄 Feature description

Create role-based resource access control. User data should not be updated by default by any administrator. Updating the data should be the responsibility of the users and the password should be updated by sending a link in the user's mail (from the console).
In the case of wanting a system where administrators can update user data, it should be specified by a configuration variable "_APP_DISABLE_PLATFORM_USERS_ROLES" or by configuration within the admin console.

馃帳 Pitch

Any administrator can update user data and can reset the user's password without the user knowing.

image

馃憖 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

馃彚 Have you read the Code of Conduct?

@patrice-blp patrice-blp added the bug Something isn't working label Sep 4, 2022
@stnguyen90 stnguyen90 added feature and removed bug Something isn't working labels Sep 6, 2022
@stnguyen90 stnguyen90 changed the title 馃悰 Bug Report: Console: Admin user can update any registered user password 馃殌 Feature: Console: Admin user can update any registered user password Sep 6, 2022
@stnguyen90
Copy link
Contributor

@patrice-blp, thanks for raising this issue! 馃檹 This is the expected and intended behavior. Admins should have full access to the project to update users.

@patrice-blp
Copy link
Author

@stnguyen90 thank you very much for your answer.
If it is intentional, it would be better that each project chooses if it wants the administrator to be able to update the data (name, email, password, phone) of the users by configuration (environment variable).

If we invite a user to be an administrator we should be able to customize access.
image

Another option would be to have access to resources based on roles "RBAC" (Admin, Sales, Marketing, etc...).

@stnguyen90
Copy link
Contributor

@patrice-blp would you please update this issue to be a feature request for additional Appwrite Console roles?

@patrice-blp
Copy link
Author

@stnguyen90 I have updated the issue to be a feature. Thanks.

@stnguyen90 stnguyen90 changed the title 馃殌 Feature: Console: Admin user can update any registered user password 馃殌 Feature: Console Roles Sep 15, 2022
@stnguyen90 stnguyen90 added enhancement New feature or request and removed feature labels Mar 20, 2024
@stnguyen90
Copy link
Contributor

Some scenarios we'll need to support:

  • Instance level restrictions
    • Restrict creating orgs
  • Org level restrictions
    • Limit access to projects (instead of access to all projects)
    • Limit access to create projects
    • Restrict who can invite users to an org
    • View vs update on billing details (which would also limit emails about billing)
    • Prevent deleting of an org
  • Project level restrictions
    • Read only access
    • Granular create/read/update/delete access in each service

Ideally, it would be nice to have something like scopes and allow developers/admins to create roles with whatever scopes so they can fully customize the access they need to grant.

Are there any other scenarios or use cases anyone can think of?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants