Appendix B. 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.
- Log in to the Metrics Store virtual machine.
Create a new user:
# oc create user username # oc create identity allow_all: username # oc create useridentitymapping allow_all: username username
Log in to the openshift-logging project:
# oc project openshift-logging
Assign a view role to the user:
# oc adm policy add-role-to-user view user name
Create a password for the user:
# oc login --username=user name --password=password