Non-admin users can create/edit/delete users and teams via API
Affected module
Backend (Authorization / RBAC)
Describe the bug
With security enabled and using Basic Authentication, a non-admin authenticated user is able to list, update and delete other users via the REST API.
This happens even when:
- Security is enabled
- JWT authentication is enabled
- The user has no explicitly assigned admin role
- No custom roles or policies have been created
The behavior suggests that default authorization policies allow user-management actions for standard users, or that authorization checks are missing or too permissive for /api/v1/users endpoints.
This represents a Broken Access Control risk (OWASP A5), especially for production environments.
To Reproduce
-
Deploy OpenMetadata v1.10.4 with:
- Security enabled
- Authentication provider:
basic - Default authorizer (
DefaultAuthorizer) - Default JWT configuration (no custom keys)
- No custom RBAC policies
-
Create or self-register a standard (non-admin) user
-
Authenticate and obtain a JWT token
-
Call the following endpoints using the token:
-
List users:
GET /api/v1/search/query?q=*&index=user_search_index -
Update another user:
PATCH /api/v1/users/{userId} -
Delete another user:
DELETE /api/v1/users/{userId}
-
-
Observe that the operations succeed without admin privileges
Expected behavior
Only users with explicit administrative privileges should be able to:
- List users
- Modify other users
- Delete users
By default, standard authenticated users should not have user-management permissions unless explicitly granted via RBAC policies.
Version
- OS: Linux (Kubernetes deployment)
- Python version: N/A
- OpenMetadata version: 1.10.4
- OpenMetadata Ingestion package version: N/A
Additional context
- Security is enabled and unauthenticated requests are correctly rejected (401).
- No custom roles or policies were created; only default configuration is used.
- Documentation does not clearly state which user-management permissions are granted by default.
- If this behavior is expected, clearer documentation or safer defaults for production would be helpful.
- If restrictive
Denypolicies are required, guidance on recommended baseline RBAC hardening would be appreciated.
@GregorioBlazquez did you check the access control policies ? what is that policies that the user has and what are the default policies that the organization have?
@harshach Thanks for the question.
Yes, we have reviewed the access control configuration and the default setup.
At the moment:
- No custom roles or policies have been created for user and team entities managing (only for Domain and Team owned assets).
- The user in question is a self-registered, non-admin user, using the default policies provided by OpenMetadata.
- According to the Access Control Debugger, the user does not appear to have permissions to view, modify or delete users.
However, in practice, the same user is able to perform those actions via the REST API, including listing users and updating/deleting other user accounts.
We have discussed this behavior in the Slack thread below: https://openmetadata.slack.com/archives/C02B6955S4S/p1770209885165619
The main question we are raising is whether it is expected behavior that:
- A non-admin user
- Who cannot view/modify/delete users from the UI
- And does not appear to have those permissions in the Access Debugger
…can still perform user-management operations via the API by default.
If this is the intended behavior, it would be helpful to clarify it in the documentation and/or provide guidance on recommended baseline policies to restrict these endpoints.
If not, we suspect there may be a gap between UI-level restrictions and API-level authorization checks.
Happy to provide additional details or test any suggested configuration changes.