Store permissions in XML file to load at build or boot?

LabKey Support Forum (Inactive)
Store permissions in XML file to load at build or boot? jeckels  2016-08-24 17:28
Status: Closed
 
Hi Ariel,

Aside from the folder import/export mechanism, we don't currently have a mechanism to automate the transfer of permissions like this.

However, it would be possible to build a tool that could manage this from an XML or other resource using client APIs like those on LABKEY.Security, including getSecurableResources(), getPolicy(), and savePolicy():

https://www.labkey.org/download/clientapi_docs/javascript-api/symbols/LABKEY.Security.html

Your own modules could use an approach like this based on an administrator hitting a certain page on the server, or run automatically server-side Java code as part of the module upgrade process.

Thanks,
Josh