apache / apache/superset

Restriction of User and Role Views to Admins Only

Open
#37,938 6 comments 0 reactions 0 assignees View on GitHub
authentication:access-control
Dominant language
Python
Stars
74.8k
Forks
18.3k
Avg merge
2d 7h
Merged PRs (30d)
692

Description

Hi,

I’d like to raise a concern regarding the current behavior where **only Admin users are allowed to view users and roles**.

From what I can see, there are specific permissions in place for managing users and roles. However, the system appears to ignore those granular permissions and instead checks for full Admin rights. This effectively overrides the intended permission model.

In our situation, this approach is not appropriate. I have key users who:

- Should **not** have full Admin rights
- **Need** the ability to:
- Grant permissions to other users
- Create new roles
- View the list of users
- View the list of roles

Under the current implementation, the only way to enable this is to grant full Admin access, which is not desirable.

I have a few questions:

1. Is this restriction intentional?
2. Is anyone currently working on changing this behavior?
3. What was the reasoning behind requiring full Admin rights instead of relying on the existing permission model?

If this is not already being addressed, would it be possible to restore the behavior so that access is controlled strictly by the relevant permissions rather than Admin status?

I’d be happy to contribute a PR to help resolve this if that would be useful.

For reference, I’m looking at this part of the code:
https://github.com/apache/superset/blob/afacca350f01696e9af7253e31557bfb9f08dae2/superset-frontend/src/views/routes.tsx#L340

Thank you for your clarification.

Contributor guide

Open the contributing guide

Research direction

Start at superset-frontend/src/views/routes.tsx around line 340 and trace how user and role visibility checks Admin status against the relevant granular permissions. Done means users with those permissions, but without full Admin access, can view users and roles and perform the stated permission and role-management actions.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
authorization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.