Hello, In order to create data permissions for our...
# gooddata-platform
h
Hello, In order to create data permissions for our users of all our projects (20ish). We want to schedule a C# script to pick up the object IDs and elementIDs so we can automate the OVER TO statements. Our internal IT, asked if such a script can run, without human intervention. So scheduled at a frequency. We'd like to runs it a couple of times a day. Is there anything against this? Dos and dont's? cc: @Luis Carriço
l
Also, do we have a limit on api calls per hour or something similar?
d
Hello, May I know how are you planning to run this script and from where? I’m guessing that due to Luis’s comment it would be a C# script that will call our APIs, but I rather confirm. And we do have a limit of how many request per API calls can be made, please check them here under REST API section: https://support.gooddata.com/hc/en-us/articles/4407896389139-Platform-Limits
h
From an Azure function, run a C# script that iterates all workspaces, all dataset, all objects, all permissions attribute elements. Currently it takes about 30minutes to pick up and store individually. We'd like to run it in the morning 8:00 and at 14:00. After a requests for setup it's needed. A do would than probably be, ey Hans if the release didn't change don't run the update etc...
d
Thanks for the details Hans 🙂 Please keep in mind that if you are using SST/TT for authentication, you might need to regenerate one of the tokens or you can also make use of the
GDCAuthSST cookie
: Use Cases: Login API Login Other than this, I would say that just make sure that you are not reaching the platform limits and good coding!
h
AH, yes. We've used the SST to log on, then replace it in the http headers with a TT. Since we're exceeding 10minutes we ask for a new TT every time we traverse a new project.
👍 1