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

Giving Import/Export XML Privilege to user_admin role

mgraden
Tera Contributor

Need to give user_admin ability to import/export XML group records they've created to other instances.

 

From what I've configured they now can see Import XML but get the following error: Unable to upload file due to security restrictions

 

Also, they can export an XML list from list view but cannot export an individual record, Export > XML (This Record) is not available. 

 

Below is what has been configured.

 

glide.ui.admin_import_xml_roles - admin,user_admin

 

Context Menu > Import XML condition - gs.hasRightsTo("ui/context_menu.import_xml/read", null) && !ListProperties.isRelatedList() && !ListProperties.isRefList() || gs.hasRole('user_admin')

 

Context Menu > Export > XML condition - gs.hasRightsTo("ui/context_menu.export_xml/read", null) || gs.hasRole('user_admin')

 

I've cleared cache, had users logout and back in, but still have the issues stated above. 

 

1 REPLY 1

GlideFather
Tera Patron

Hi @mgraden,

 

not entirely sure but it seems that you gave them rights to exporting but not to the table as such.

Check the ACL or eventually Access Analyser to review their access rights.

 

Let me know what you found

_____
100 % GlideFather experience and 0 % generative AI