Need to Hide Export Option in List View for certain users

M Ravi K
Tera Contributor

Hello Experts, 

 

We have requirement to hide "Export" option in UI Context menu in the List view (export -> CSV,PDF, etc). We developed a scoped application and this view is from that scoped app. We can able to achieve this via changing the out of the box Export context menu conditions. Is there any way to achieve this without modifying out of the box Context menu conditions ? We verified the forums and try to write ACL's like table.* as well but no luck.

Please advice.

 

Regards,

Ravi

 

5 REPLIES 5

sourav1999
Mega Guru

- To hide the export option in list view for certain users, you need to create a UI Policy with a condition that checks for the user's role. - Create a UI Policy that sets the Export List action to false when the user's role is matched. - Add the UI Policy to the list view form. - Publish the changes.

 

For asking ServiceNow-related questions try this :

For a better and more optimistic result, please visit this website. It uses a Chat Generative Pre-Trained Transformer ( GPT ) technology for solving ServiceNow-related issues.

Link - https://nowgpt.ai/

 

For the ServiceNow Certified System Administrator exams try this :

https://www.udemy.com/course/servicenow-csa-admin-certification-exam-2023/?couponCode=NOW-DEVELOPER

Hello Sourav,

 

It is a UI Context menu and it is not working with that. Can you please suggest the alternate?

Hello Sourav,

Can you please help me on more details please  a details screenshot will also help. Thank you.

KaviBharathi D
Tera Contributor

Hello Ravi

To hide the context menu from the table.You can navigate to the sys_ui_context_menu table and add a condition to it.

KaviBharathiD_1-1685076392862.png

 

Mark my reply as Correct and also hit Like and Helpful if you find my response worthy.

 

Thanks