Export Update Set - Security restricted when invoking processor

Clement_V
Giga Guru

Hello !

I created a role to Export Update Sets to XML without having the admin role.


For this:
- I authorized access to the Application Menu and Modules.
- I added the necessary ACLs to the role (sys_update_set,sys_update_xml,sys_remote_update_set,...)
- I modified the Macro UI 'context_form_header' (<g2:evaluate var="jvar_context_menu_export_xml" expression="gs.hasRole('my.role')" />)
- I added the role in the 'ExportBaseUpdateSet' and 'ExportUpdateSet' Processors.

 

But when I want to export my Update Set, I am blocked by the following message: 'Security restricted when invoking processor'

 

Do you know the reason ?

 

Clement_V_0-1723451132526.png

Clement_V_1-1723451144074.png

 



1 ACCEPTED SOLUTION

Clement_V
Giga Guru

Update !

I had to add the role in the 'role' field and in the script of the 'ExportUpdateSet' processor.

https://<instance-name>.service-now.com/now/nav/ui/classic/params/target/sys_processor.do%3Fsys_id%3Dfb4038b40a0a3c1e00d0a2c1d3908a33%26sysparm_record_target%3Dsys_processor%26sysparm_record_row%3D3%26sysparm_record_rows%3D4%26sysparm_record_list%3DnameCONTAINSupdate%255EORDERBYname

 

Clement_V_0-1724221566917.png

 

View solution in original post

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@Clement_V According to the ServiceNow docs, only Admins can export the Update set XML.

 

Screenshot 2024-08-12 at 2.08.14 PM.png

 

Source: https://docs.servicenow.com/bundle/washingtondc-application-development/page/build/system-update-set...

 

Hope this helps.

Thanks to you, but I think it is possible without the 'Admin' role because I have consulted the publications of other users who have succeeded but without encountering my problem.

Clement_V
Giga Guru

Update !

I had to add the role in the 'role' field and in the script of the 'ExportUpdateSet' processor.

https://<instance-name>.service-now.com/now/nav/ui/classic/params/target/sys_processor.do%3Fsys_id%3Dfb4038b40a0a3c1e00d0a2c1d3908a33%26sysparm_record_target%3Dsys_processor%26sysparm_record_row%3D3%26sysparm_record_rows%3D4%26sysparm_record_list%3DnameCONTAINSupdate%255EORDERBYname

 

Clement_V_0-1724221566917.png