Make some Fields in the CMDB CI read only for Normal users - Users with a Specific Role can edit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:40 PM
1. Fields for auto-discovered CI's should be set to read only for normal users on cmdb parent table. Condition to be used: Discovery Source field = Servicenow
2. Only ServiceNow discovery user id should be able to update the read only fields - Users with mid_server Role
4. Possible solution ACL with custom roles and scripts or UI Policy
5. The solution should allow to add more fields in the future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 11:50 PM
Lets say the table cmdb_ci_win_server - fields that are read only are:
var readOnlyFields = [
'sys_class_name',
'category',
'subcategory',
'serial_number',
'manufacturer',
'model_id',
'host_name',
'dns_domain',
'ip_address',
'os',
'os_version',
'virtual',
'cpu_manufacturer',
'cpu_type',
'cpu_name',
'cpu_core_count',
'cpu_count',
'cpu_speed',
'cpu_core_thread',
'ram',
'disk_space',
'discovery_source'
now the Users with the mid_server Role are able to edit this fields.
I try ACLs, UI policy ( make fields read only - works ) Client Scripts and Business rule but still not able to implement it
Fields for auto-discovered CI's should be set to read only for normal users on cmdb parent table. Condition to be used: Discovery Source field = Servicenow