
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 03:19 AM
i need to Enable "Is Virtual" attribute in Default and WorkSpace view for the below mentioned classes and it should be read only for admin. What would be the best approach
Parent Class | Child Class |
Network Gear | Network Gear |
Network Gear | IP Router |
Network Gear | IP Switch |
Network Gear | IP Firewall |
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 08:28 AM
Hi,
To enable the "Is Virtual" attribute in the Default and WorkSpace views for the specified classes and make it read-only for admin in ServiceNow, follow these steps:
-
Create the "Is Virtual" Attribute:
- Navigate to the System Definition > Dictionary.
- Create a new dictionary entry for the "Is Virtual" attribute if it doesn't already exist.
- Set the appropriate data type (e.g., Boolean).
-
Add the Attribute to the Classes:
- Go to Configuration > CI Class Manager.
- Select the parent class Network Gear.
- Add the "Is Virtual" attribute to the parent class and ensure it is inherited by the child classes (IP Router, IP Switch, IP Firewall).
-
Configure the Default and WorkSpace Views:
- Navigate to System UI > Views.
- Select the Default and WorkSpace views.
- Add the "Is Virtual" attribute to the form layout for the relevant classes.
- 4. Set the Attribute as Read-Only for Admin:
- Go to System Security > Access Control (ACL).
- Create a new ACL rule for the "Is Virtual" attribute.
- Set the operation to Read and apply it to the admin role.
- Ensure the condition is set to make the attribute read-only for users with the admin role.
5. Test the Configuration:
- Verify that the "Is Virtual" attribute is visible in the Default and WorkSpace views for the specified classes.
- Ensure that the attribute is read-only for users with the admin role.
By following these steps, you can enable the "Is Virtual" attribute in the Default and WorkSpace views for the specified classes and make it read-only for admin in ServiceNow.
If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.
Thank you for your consideration.
Selva Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2025 08:28 AM
Hi,
To enable the "Is Virtual" attribute in the Default and WorkSpace views for the specified classes and make it read-only for admin in ServiceNow, follow these steps:
-
Create the "Is Virtual" Attribute:
- Navigate to the System Definition > Dictionary.
- Create a new dictionary entry for the "Is Virtual" attribute if it doesn't already exist.
- Set the appropriate data type (e.g., Boolean).
-
Add the Attribute to the Classes:
- Go to Configuration > CI Class Manager.
- Select the parent class Network Gear.
- Add the "Is Virtual" attribute to the parent class and ensure it is inherited by the child classes (IP Router, IP Switch, IP Firewall).
-
Configure the Default and WorkSpace Views:
- Navigate to System UI > Views.
- Select the Default and WorkSpace views.
- Add the "Is Virtual" attribute to the form layout for the relevant classes.
- 4. Set the Attribute as Read-Only for Admin:
- Go to System Security > Access Control (ACL).
- Create a new ACL rule for the "Is Virtual" attribute.
- Set the operation to Read and apply it to the admin role.
- Ensure the condition is set to make the attribute read-only for users with the admin role.
5. Test the Configuration:
- Verify that the "Is Virtual" attribute is visible in the Default and WorkSpace views for the specified classes.
- Ensure that the attribute is read-only for users with the admin role.
By following these steps, you can enable the "Is Virtual" attribute in the Default and WorkSpace views for the specified classes and make it read-only for admin in ServiceNow.
If you believe the solution provided has adequately addressed your query, could you please **mark it as 'Helpful'** and **'Accept it as a Solution'**? This will help other community members who might have the same question find the answer more easily.
Thank you for your consideration.
Selva Arun