Kibana Guide: Spaces, Roles and Users

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Checked on 2026-11-11 against Kibana 9.5.x.

What you build

You split the lab into a separate working area. You create a space called Guide ops whose navigation is focused on Observability, a role guide-bookshelf-viewer that can read the Bookshelf log index and has read access to that space, and a user guide-viewer with that role. After you sign in as that user, you see only the space and the data you granted.

Kibana 9.5 in the space Guide ops for the user guide-viewer: the left navigation is the Observability navigation with Overview, Alerts, SLOs, Cases, Streams, Logs, Infrastructure and Applications, and Discover shows the log records of the data view Bookshelf logs (guides)

Before you start

  • Start the Kibana profile of the hands-on lab and wait about a minute:

    cd lab
    docker compose --profile kibana up -d
  • Open http://localhost:5601 and sign in as elastic with the password lab-elastic-password. When Kibana opens its full-screen welcome page, click Explore on my own.

  • Do the previous guide, Tour of the Observability apps, and the guide that creates the data view, Upload a file and create a data view. The last steps use the data view Bookshelf logs (guides).

  • Spaces are included in every licence, and so are roles and users of the built-in realm; the lab runs a trial licence anyway. Roles and users need a user with the superuser role, which is the elastic user of the lab.

  • The guide was checked on Elasticsearch and Kibana 9.5.6. The figures are drawings of the Kibana 9.5 user interface, not screenshots, so small details can differ from your screen. The choices of the solution view, the Assign to space flyout, the Saved objects list and the account menu are drawn generically; look for a control by its name when it is not where a figure shows it. A highlighted box with a number marks the control of the step with the same number.

Steps

The guide works in Stack Management, in the pages Spaces, Roles, Users and Saved objects, and ends in a second browser session. Use a private window or a second browser profile for the last phase if you want to keep the elastic session open. A space has its own saved objects, so the guide copies the data view into the new space.

Create the space

  1. Click the menu button (Toggle primary navigation) at the left of the second bar.

  2. Under Management, click Stack Management.

    Kibana 9.5 with the primary navigation open and the Management section listing Dev Tools, Workflows, Integrations, Fleet, Osquery, Stack Monitoring, Cloud Connect, Stack Management and Streams; callout 1 marks the menu button of the second bar and callout 2 marks Stack Management
  3. In the menu of Stack Management, under Kibana, click Spaces, then click the button that creates a space. The page Create space also opens directly at http://localhost:5601/app/management/kibana/spaces/create.

  4. In the section Describe this space, type Guide ops in Name.

  5. Check that URL identifier reads guide-ops. Kibana fills it from the name, and it cannot be changed once the space exists; edit it now if it differs.

    Create space page of Kibana 9.5 with the section Describe this space: the Name field holding Guide ops is marked by callout 4, the URL identifier field holding guide-ops with the hint that it cannot be changed is marked by callout 5
  6. In the section Select solution view, open the select Solution view and choose Observability. The space then shows the navigation of the Observability solution only.

    Create space page of Kibana 9.5 with the section Select solution view and the Solution view select open with the choices Observability, Security and Search; the select is marked by callout 6
  7. Leave Set feature visibility as it is. Every group (Analytics 10/10, Alerting V2 4/4, Elasticsearch 6/6, Observability 8/8, Security 9/9 and Management 26/26) stays fully visible. Click Create space.

    Create space page of Kibana 9.5 with the section Set feature visibility listing the groups Analytics 10 of 10, Alerting V2 4 of 4, Elasticsearch 6 of 6, Observability 8 of 8, Security 9 of 9 and Management 26 of 26; the Create space button is marked by callout 7

Create the role

  1. In Stack Management, under Security, click Roles, then click the button that creates a role. The page Create role also opens directly at http://localhost:5601/app/management/security/roles/edit.

  2. Type guide-bookshelf-viewer in Role name. The name cannot be edited once the role is created.

  3. Type Read the Bookshelf logs in Role description.

    Create role page of Kibana 9.5 with the Role name field holding guide-bookshelf-viewer, marked by callout 9, and the Role description field holding Read the Bookshelf logs, marked by callout 10
  4. In the section Index privileges of the data layer (Elasticsearch), click Add index privilege.

  5. In Indices, type logs-generic.otel-default and press Enter.

  6. In Privileges, choose read and view_index_metadata. The first lets the user search the index, the second lets Kibana read its field list for a data view.

  7. In the section Application layer - Kibana, which says "This role does not grant access to Kibana", click Assign to space.

    Create role page of Kibana 9.5 with the Index privileges section: the button Add index privilege is marked by callout 11, the Indices field holding logs-generic.otel-default by callout 12 and the Privileges field holding read and view_index_metadata by callout 13; below, in the Application layer - Kibana section, the button Assign to space is marked by callout 14
  8. In the flyout that opens, choose the space Guide ops in Spaces.

  9. Choose the privilege Read for the Kibana features of the space.

  10. Confirm with the button at the bottom of the flyout (Assign).

    Flyout Assign role to space on the Create role page of Kibana 9.5: the Spaces field holding Guide ops is marked by callout 15, the privilege choice Read is marked by callout 16 and the Assign button is marked by callout 17
  11. The section Application layer - Kibana now lists the space Guide ops with the privilege Read. Click Create role.

    Create role page of Kibana 9.5 after the assignment: the Application layer - Kibana section lists the space Guide ops with the privilege Read; the Create role button is marked by callout 18

Create the user

  1. In Stack Management, under Security, click Users, then click the button that creates a user. The page Create user also opens directly at http://localhost:5601/app/management/security/users/create.

  2. In the section Profile, type guide-viewer in Username.

  3. Type Guide Viewer in Full name.

  4. In the section Password, type guide-viewer-password in Password. The password must be at least 6 characters.

  5. Type the same password in Confirm password.

  6. In the section Privileges, choose the role guide-bookshelf-viewer in Roles.

  7. Click Create user.

    Create user page of Kibana 9.5 with the Profile section (Username guide-viewer marked by callout 20, Full name Guide Viewer marked by callout 21), the Password section (Password marked by callout 22 and Confirm password marked by callout 23), the Privileges section with the role guide-bookshelf-viewer in the Roles field marked by callout 24, and the Create user button marked by callout 25

Copy the data view into the space

  1. In Stack Management, under Kibana, click Saved objects.

  2. In the row of the data view Bookshelf logs (guides), open the actions and choose the action that copies the object to a space.

    Saved objects page of Kibana 9.5 listing the dashboard Bookshelf (guides) and the data view Bookshelf logs (guides); the Actions cell of the data view row is marked by callout 27
  3. In the dialog, select the space Guide ops and confirm the copy.

Sign in as the new user

  1. Open the account menu (the avatar at the right of the first bar) and click Log out.

    Account menu of Kibana 9.5 open from the avatar at the right of the first bar with the user name elastic and the entry Log out, which is marked by callout 29
  2. Sign in as guide-viewer with the password guide-viewer-password. If Kibana asks which space to open, choose Guide ops.

Check the result

Kibana opens in the space Guide ops with the navigation of the Observability solution: Overview, Alerts, SLOs, Cases, Logs, Infrastructure and Applications. Open Logs → Discover and choose the data view Bookshelf logs (guides): the log records of the lab appear, because the role reads logs-generic.otel-default. Then check what the user cannot do: Stack Management does not offer Roles or Users to this user, and a request to open http://localhost:5601/app/management/security/users/create is refused.

If Discover shows no records, force some traffic and widen the time picker to Last 1 hour:

curl -X POST localhost:8090/mode/failing

Restore normal traffic afterwards:

curl -X POST localhost:8090/mode/normal

Variations

  • Create a role without the index privilege and with the Kibana privilege Read only: the user opens Discover but sees no data.

  • Hide a feature in Set feature visibility when you create or edit the space, for example Machine Learning under Analytics, and its entry disappears from the navigation of the space for everyone.

  • Assign the same role to several spaces, with a different privilege in each, from the Assign to space flyout.

What can go wrong

Symptom Cause Fix

The space shows the classic navigation, not the Observability one

The solution view of the space was left on its default when the space was created.

Edit the space in Spaces, choose Observability in Solution view, and save.

The user signs in and Kibana reports that there is no access

The role has no Kibana privilege on a space, or the user has no role.

Open the role and check Application layer - Kibana, then open the user and check Roles.

Discover offers no data view

The data view lives in the Default space and was not copied to Guide ops.

Copy Bookshelf logs (guides) to the space from Saved objects, or create a data view in the space with an account that may manage data views.

Discover shows the data view but an error about the index

The index privilege is missing or names another index.

Check Indices and Privileges in the role: logs-generic.otel-default with read and view_index_metadata.

Clean up

The guide creates a space, a role and a user in the lab. To remove them, sign in again as elastic and open Stack Management: delete the user guide-viewer in Users, the role guide-bookshelf-viewer in Roles, and the space Guide ops in Spaces. Deleting a space also deletes the saved objects inside it, such as the copy of the data view. Stopping the profile with docker compose --profile kibana down -v removes all of them with the volumes.

Where to go next