Ts_P
(Ts P)
June 16, 2026, 11:41am
1
In elastic stack 9.4 we want to disable /enable "Manage spaces" functionality.
I found only this in the documentation:
"An example of a built-in role is kibana_admin. Assigning this role to your users will grant access to all of Kibana's features. This includes the ability to manage spaces."
Is there another way to enable that functionality? I don't want to give users such a role.
I saw that by default this functionality is hidden.
"applications": [
{
"application": "kibana-.kibana",
"privileges": [
"feature_discover_v2.all",
"feature_dashboard_v2.all",
"feature_visualize_v2.all",
"feature_indexPatterns.all",
"feature_savedObjectsManagement.all",
"feature_fleetv2.read",
"feature_fleet.read"
],
"resources": [
"*"
]
}
]
covj12
(윤성 반)
June 30, 2026, 12:34am
2
You can create a custom role that excludes the spaces feature privilege.
Use the following API call to create the role
PUT /api/security/role/my_custom_role
{
"elasticsearch": {
"cluster": [],
"indices": []
},
"kibana": [
{
"base": [],
"feature": {
"discover_v2": ["all"],
"dashboard_v2": ["all"],
"visualize_v2": ["all"],
"indexPatterns": ["all"],
"savedObjectsManagement": ["all"],
"fleetv2": ["read"],
"fleet": ["read"]
# No "spaces" entry → Manage spaces access denied
},
"spaces": ["*"]
}
]
}
Once the role is created, assign it to the relevant users via Stack Management → Security → Users, or using the Kibana user management API.
Ts_P
(Ts P)
June 30, 2026, 6:12pm
3
I will test it and let you know
covj12
(윤성 반)
July 1, 2026, 4:16am
4
Ts_P:
Manage spaces
Ah, wrong API endpoint, try this instead
PUT _security/role/my_custom_role
{
"cluster": [],
"indices": [],
"applications": [
{
"application": "kibana-.kibana",
"privileges": [
"feature_discover_v2.all",
"feature_dashboard_v2.all",
"feature_visualize_v2.all",
"feature_indexPatterns.all",
"feature_savedObjectsManagement.all",
"feature_fleetv2.read",
"feature_fleet.read"
],
"resources": ["*"]
}
]
}
Ts_P
(Ts P)
July 1, 2026, 3:42pm
5
Hi , thanks a lot . This unfortunately does not solve our issue. It is hidden by default . I want to find which one is the option to enable it for specific users (without set kibana_admin role to their users)
Hello @Ts_P
Related to this concern i already see below github issues which are open :
opened 05:55PM - 26 Nov 19 UTC
Team:Security
enhancement
Feature:Security/Feature Controls
Currently, the ability to manage spaces is only granted with the "All" base priv… ileges, and must be granted at all spaces. This isn't obvious, and it also is limiting because you can't create a role which can only manage spaces or manage a subset of spaces.
opened 02:48PM - 01 Jul 25 UTC
closed 05:14PM - 29 Jul 25 UTC
Team:Security
enhancement
**Summary:**
Currently, managing spaces in Kibana requires the `kibana_admin` … role, which grants broad administrative privileges that many customers consider too powerful for this specific task. To better support least-privilege access models, we request the introduction of a dedicated, granular privilege that allows users to create and manage spaces without granting full admin rights.
**Background:**
Customers have expressed a need for finer-grained control over space management permissions. Kibana currently checks for space management capabilities via an internal capabilities API, but there is no way to enable this capability independently of the full `kibana_admin` role. This limits flexibility and forces customers to grant excessive privileges to users responsible only for space-related tasks.
**Proposal:**
- Introduce a new, specific “Manage Spaces” privilege that can be assigned independently of `kibana_admin`.
- Update the capabilities API to recognize and enforce this new privilege.
- Reflect the new privilege in Kibana RBAC/UI for easy assignment and management.
Thanks!!
Ts_P
(Ts P)
July 2, 2026, 7:26am
7
thanks a lot for clarifying @Tortoise . thanks @covj12 for your help as well