Export Option in ServiceNow Based on Roles & Tables

vijayA357107553
Tera Contributor

Hi All,
I have a requirement where I need to show the Export option only for specific users based on roles and tables, and completely block export for certain sensitive tables.

 

Initially, I tried using sys_ui_context_menu, but it’s not suitable for my usecase

Use Case

  • Tables like:

    • sys_user (Users)

    • customer_account (Accounts)

    • customer_contact (Contacts)
      should be exportable only if the user has specific roles.

  • Tables like:

    • cmdb_ci
      alm_asset
      should never be exportable, even for admins.

1 REPLY 1

Ankur Bawiskar
Tera Patron

@vijayA357107553 

you will have to touch the OOTB Context menu for this.

Even if you create custom button then OOTB one will be seen

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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