Need to apply user criteria to Change model
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2023 09:06 AM
Hi Team,
Reqirement is to show 'normal' change model only for users who are part of division - normal.
Here division is a custom field (reference) on 'cmn_department' table.
So if user is part of department abc and if that department has division as 'normal', only those users should be able to see 'normal change' unders models when user click on create new change.
I have used user crtieria, but its not working. Also I tried very simple user criteria like adding some users in user criteria and adding that user criteria in 'available for' related list under change model.
Is there any other configuration that needs to be done?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2023 09:11 AM
Hi @rambo1,
Have you removed the read and write role form Change model records?
Also, take a look at this article: Change Models advanced security - RBAC and User Criteria
If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2023 10:38 AM
Yes removed roles from change model.
Does the article say that I need to deactivate acl's on chg_model table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2023 11:10 AM
Hi @rambo1 ,
Hope you are doing great.
To achieve the requirement of showing the "normal" change model only for users who are part of the "normal" division, you can follow these steps:
- Define a new division called "normal" in the "cmn_department" table if it does not already exist.
- Ensure that the "cmn_department" table has a reference field called "division" which links to the "division" table. This will allow you to associate each department with its corresponding division.
- Create a new user criteria in ServiceNow to identify users who are part of the "normal" division. This user criteria should check if the user's department is associated with the "normal" division.
- Remove the read and write roles from the "Change Model" records to restrict access and ensure that only authorized users can view and modify them.
- Apply the user criteria to the "Change Model" table. This can be done by adding the user criteria to the "Available For" related list under each "Change Model" record.
- Save the configurations and test the setup using users from departments associated with the "normal" division. They should now be able to see the "normal change" model when they click on "Create New Change."
Regards,
Riya Verma