How to restrict view based on role?

sowmya28
Tera Contributor

I have one view called "Demo_View". I need to restrict this view only to users with Role "Viewers".

I tried adding role to view and adding view rule but it didn't work.

Please help me how can I achieve it. Thanks in advance.

13 REPLIES 13

looks fine to me.

How is the user navigating to that table?

which view are they seeing?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

admin is able to see that view. It's not only restricting that role.

Chandu Telu
Tera Guru
Tera Guru

Hi Sowmya,

Can you share your code as anukur asked

 

Check the below link it may help you

https://community.servicenow.com/community?id=community_question&sys_id=accdac0cdb97d700e0e80b55ca96190d

Thanks
Chandu Telu
Please Mark ✅ Correct/helpful, if applicable,

The link which you shared is no more. I can see nothing.