- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 05:04 AM
Hi,
I want to make only Incident Number available on form, on list, and on reference icon popup view of an Incident table for only specific set of users based on a role.
I have created a "Sys_popup,portal" view accordingly and able to see the only Incident Number on on form, on list, and on reference icon popup.
I have created a role and assigned to few users and written a View Rule to make it available for them based on that role.
However these users are still able to see the default view instead of the newly assigned "Sys_popup,portal" view.
Kindly help me on how can I make the "Sys_popup,portal" view as default to specific users based on a role.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 10:53 AM
Hi
I have checked this in my PDI and I don't think View Rule is going to work in your scenario. This has been mentioned in below HI article from ServiceNow as well:
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0960698
Solution Approach: I would recommend using an ACL on your table and ACL can control this pretty well.
Let me know if you need a help or have a query on this one.
Hope this helps. Please mark the answer as correct/helpful based on impact.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 05:47 AM
Hi Pravallika ,
Does it work at any place at all ? I mean does it run at certain places but doesnt run at some other places ?
Do you specifically need the "hasRoleExactly" ? or have you checked with hasRole as well ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 05:48 AM
You can control this with an ACL. If a user cannot read a particular field, that field will not show up on the popup for the user.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 05:51 AM
You should also consider naming your roles in lower snake case (non_mim_user_role instead of non mim user role).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā02-06-2022 05:53 AM
One more thing. There is no view in the platform named "default", unless you created a view with this name. The Default view in the platform actually has no name. So you should set answer to an empty string if you want the Default view to display.