Appendix A. Sharing reports with non-administrators

Users without administrator privileges can view collected logs and metrics as read-only users. The following example creates a user named user name with view (read-only) permissions.

  1. Log in to the Metrics Store virtual machine.
  2. Create a new user:

      # oc create user username
      # oc create identity allow_all: username
      # oc create useridentitymapping allow_all: username username
  3. Log in to the openshift-logging project:

      # oc project openshift-logging
  4. Assign a view role to the user:

      # oc adm policy add-role-to-user view user name
  5. Create a password for the user:

      # oc login --username=user name --password=password