We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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.

3 REPLIES 3

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

@vijayA357107553 

Hope you are doing good.

Did my reply answer your question?

💡 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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Giga Sage

Hi  vijayA357107553

 

See this ServiceNow KB article. It will help you.

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0676119

Please mark this response as Helpful & Accept it as solution if it assisted you with your question.
Regards
Tanushree Maiti
ServiceNow Technical Architect
Linkedin: