Create a role with only privileges to create new kibana space

Hello Team,

I need to a role with min privileges, such that user will be able to create new space on kibana.
inbuilt roles will have more privileges than our requirement, I cannot use that.

So please help with creating a role with only privilege to create a new space.

Thanks in advance
Pavani

I don't think that is possible, to manage spaces you need the kibana_admin role, which has access to all features in Kibana.

Hello Leandro,
Hope you are doing well!
Thank you for your response.

we cannot use inbuilt roles, because it gives access to all features.
Is there any other possible way to create a granular privilege for space creation?

GET _security/role/kibana_admin

{
    "cluster" : [ ],
    "indices" : [ ],
    "applications" : [
      {
        "application" : "kibana-.kibana",
        "privileges" : [
          "all"
        ],
        "resources" : [
          "*"
        ]
      }
    ],
    "run_as" : [ ],
    "metadata" : {
      "_reserved" : true
    },
    "transient_metadata" : {
      "enabled" : true
    }
  }

I couldn't find good document related to available resources options. Do you have any idea?

Thanks in advance
Pavani

No, there is not, to create spaces you need to have the kibana_admin permission or something similar to it.

You can create a custom role, but it would need to have the same permissions as the kibana_admin.

This is mentioned here.

To be able to create spaces you need to have a role with have permissions to all features in Kibana.