Enable non-admin users to export update sets to XML

Gareth Davies1
Mega Guru

I have a requirement to enable non-admin users to work with update sets. This blog solved most of that but clicking the export to XML UI action throws a permissions error.

GarethDavies1_0-1674490028331.png

I've been unable to work out just what I need to update to allow them to do that, any ideas?

1 ACCEPTED SOLUTION

Gareth Davies1
Mega Guru

Answering my own question, it's hard coded to the admin role in the ExportUpdateSet processor. If you want to do this then the line below needs modifying to account for your non-admin role(s).

 

if (!gs.hasRole('admin') && !sn_app_api.AppStoreAPI.canPublishToUpdateSet(remoteUpdateGR.application)) {

View solution in original post

1 REPLY 1

Gareth Davies1
Mega Guru

Answering my own question, it's hard coded to the admin role in the ExportUpdateSet processor. If you want to do this then the line below needs modifying to account for your non-admin role(s).

 

if (!gs.hasRole('admin') && !sn_app_api.AppStoreAPI.canPublishToUpdateSet(remoteUpdateGR.application)) {