Can we make a Sys_popup view available only for specific users based on a role?

Servicenow_12
Tera Contributor

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.

find_real_file.png

 

 

1 ACCEPTED SOLUTION

shloke04
Kilo Patron

Hi @Pravallika 

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

 

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

View solution in original post

9 REPLIES 9

Arijit Gupta1
Giga Contributor

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 ?

David Arbour
Tera Guru

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.

You should also consider naming your roles in lower snake case (non_mim_user_role instead of non mim user role).

David Arbour
Tera Guru

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.