Programattically assign per dataset permissions in server

LabKey Support Forum (Inactive)
Programattically assign per dataset permissions in server Sev  2017-10-06 14:31
Status: Closed
 
Hi Jon,

Ive fixed the issue, it was on our end. Thanks for your help! And Trey's as well in the open work session.

What was going on is during our build process, we run a dataset registration script. We have some tables being created in the backend that we register so LabKey will recognize them as datasets. During this process a new entityid is generated, so if the table was already registered as a dataset the existing relationships based on entityid are broken. Ive updated the script to use the existing entityid if the dataset has already been registered and now the permissions are persisting as expected.

Thanks again,

Sev