The CreatorCon Call for Content is officially open! Get started here.

Restrict export directly from URL for JSON and XML

egravl
Tera Contributor

I am able to Restrict export directly from URL for CSV, Excel and PDF formats using processor ACL's as described in this article:   

https://community.servicenow.com/community?id=community_question&sys_id=8daefa65db58dbc01dcaf3231f961973&view_source=searchResult

For some reason, the processor ACL's on XMLOutputProcessor and JSONOutputProcessor are not working.  Both ACLs restrict access based on a role, but someone without that role can still export to JSON and XML directly from a URL.

9 REPLIES 9

Pavankumar_1
Mega Patron

Hi,

1. you can try on context menus (table- sys_ui_context_menu). open this table and refer below

 

find_real_file.png

 

2. Open the XML record as shown above list and on condition field give condition like below

gs.getUser().hasRoleExactly('itil')

find_real_file.png

 

Hope it helps!!

Please Mark Correct/helpful, if applicable, Thanks!! 

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Hi Pavan,  The solution you provided restricts export from the context menu, not from a URL.  Thanks anyway.  Eric

-O-
Kilo Patron

Could you post the URL?

egravl
Tera Contributor

Hi Janos,  What URL are you looking for?  The URL to the community article I'm following was in my original post.  I've copied it to here as well:  https://community.servicenow.com/community?id=community_question&sys_id=8daefa65db58dbc01dcaf3231f961973&view_source=searchResult 

Thanks, Eric