In my deployed environment I have a folder structure like Parent1\Child1. I then have a user or a group (does not matter) that is assigned read permission to Parent1. When I save the permission it then propagates the read permission to child1 and also all the templates in child1. This all seems correct.
On my local machine, which I do not have the same folder structure or users setup. I actually have my reports in a git repo. So I pull down the reports and make a change. I commit the changes to the repo, and that kicks of a build that exports the reports in the data folder to a ******.export file. Now there is a release pipeline job that calls the import api and imports (full) the the reports into folder child1. All of this process work fine.
The issue is that user or group that has read permission to folder Parent1 no longer has access to the templates in Child1. When I look at the templates definitions the permissions arrays are empty. I believe this is because these permission are not setup on my local machine, nor will they ever be.
Is there a API call that I can make after the import that will reapply permission to all of the templates in a folder?
This is the reports json definition when the permission are applied.
{
"_id": "658ee96ded3f8e290fe16f35",
"name": "XXXXXX_PDF",
"engine": "handlebars",
"recipe": "chrome-pdf",
"data": {
"shortid": "U8RewqKQC"
},
"shortid": "HXspsxMZzL",
"chrome": {
"printBackground": true,
"marginTop": "0.5in",
"marginBottom": "1in",
"marginRight": "0.5in",
"marginLeft": "0.5in",
"landscape": true
},
"scripts": [
{
"shortid": "eVA2uyLwt"
}
],
"pdfOperations": [
{
"type": "merge",
"templateShortid": "401aVyc",
"mergeWholeDocument": true
}
],
"creationDate": "2024-03-08T21:11:00.330Z",
"modificationDate": "2024-05-14T19:21:40.527Z",
"readPermissions": [
"655647240e547f0c8ce4ad55"
],
"editPermissions": [
"655647240e547f0c8ce4ad55"
],
"inheritedReadPermissions": [
"655647240e547f0c8ce4ad55",
"djYU1HQqwKkVH0pt",
"1hu3mVzzCOihZD5k",
"Xug2ImE3flfCQORu",
"jiYXyoH85oEE66oo",
"0OPGx5fyhIAqbYjk"
],
"inheritedEditPermissions": [
"655647240e547f0c8ce4ad55",
"1hu3mVzzCOihZD5k"
],
"editPermissionsGroup": [
"65969a2c1b470b8f062b6eaa"
],
"folder": {
"shortid": "IZvhxOL"
}
}
This is the report definition after the import.
{
"_id": "658ee96ded3f8e290fe16f35",
"name": "Critical_Date_PDF",
"engine": "handlebars",
"recipe": "chrome-pdf",
"data": {
"shortid": "U8RewqKQC"
},
"shortid": "HXspsxMZzL",
"chrome": {
"printBackground": true,
"marginTop": "0.5in",
"marginBottom": "1in",
"marginRight": "0.5in",
"marginLeft": "0.5in",
"landscape": true
},
"scripts": [
{
"shortid": "eVA2uyLwt"
}
],
"pdfOperations": [
{
"type": "merge",
"templateShortid": "401aVyc",
"mergeWholeDocument": true
}
],
"creationDate": "2024-03-08T21:11:00.330Z",
"modificationDate": "2024-05-15T11:53:28.885Z",
"readPermissions": [
"655647240e547f0c8ce4ad55"
],
"editPermissions": [
"655647240e547f0c8ce4ad55"
],
"inheritedReadPermissions": [
"655647240e547f0c8ce4ad55"
],
"inheritedEditPermissions": [
"655647240e547f0c8ce4ad55"
],
"editPermissionsGroup": [
"65969a2c1b470b8f062b6eaa"
],
"folder": {
"shortid": "IZvhxOL"
}
The Ids 655647240e547f0c8ce4ad55 and 65969a2c1b470b8f062b6eaa show up on my local machine. I am assuming those are the users my local dev environment is using and created when I added the report. As you can see the inheritedReadPermissions and inheritedEditPermissions are no longer present.
Thanks