Set up the ITSM read-only role
Give non-agent users read-only access to the ITSM tables with the itsm_read_only role, and fix records, fields or SLAs they cannot see.
Set up the ITSM read-only role when people who are not agents need to read ITSM records, for example auditors or managers. They see the whole record but can change only what any requester can.
Before you begin
- You need the
administratorrole. - Test the setup in a non-production instance first.
- The users must already hold
platform_selfserviceand must not holditsm_agent. An agent already has every read right this role gives, and the two roles conflict.
Steps
-
Give the users
itsm_read_only, directly or through a group. It includesplatform_read_only. -
To let them build their own reports and dashboards, also give them
report_creator. They can then create private reports and read reports shared with them.report_editoris for agents. -
To let them read the CMDB, also give them
cmdb_viewer. Do not givecmdb_manager, which makes them agents. -
To give them a left menu, give them
navigation_menuand create menu items that onlyitsm_read_onlycan see. No menu items ship for this role. See Add or change a navigation menu entry. -
Review the Roles field of each SLA definition. Users with a role listed there can read the SLAs generated from it. Remove
itsm_read_onlyif they should not see SLAs.
Result
The users can read ITSM Work, incidents, requests, problems, changes and all their tasks, with supporting data such as SLAs, classifications, groups and departments. Every field is read-only for them except the client journal of incidents and requests. They can raise their own incidents and requests and resolve or cancel them, but cannot change other statuses or create knowledge.
Troubleshooting
These problems affect instances whose ITSM security rules were changed before the role was added.
Records do not show
Cause: the incident or request record visibility restriction still limits every non-agent user to their own records.
Fix: change the condition so it excludes read-only users as well as agents, as in this incident example:
if (!user.hasAnyRole("itsm_agent", "itsm_read_only")) {
answer = OR(
EQUAL("Requestor", user.getID()),
EQUAL("RequestedFor", user.getID())
);
}
Fields do not show
Cause: a field permission that denies the field to users without itsm_agent is not overridden. The role adds allow permissions for the default agent-only fields on ITSM Work, Incident and ITSM Request. Fields you added are not in them.
Fix: add your fields to those allow permissions. If a reference field is still empty, give the role read access to the table it points to.
Existing SLAs do not show
Cause: an SLA gets its roles from its definition when it is created. SLAs created before itsm_read_only was added to the definition do not list it.
Fix: add the role to the Roles field of the existing SLA records.