Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
I have a python script that retrieves the load script from each app in our repository through the JSON API, using certificate authentication. It runs fine for every app except a handful that have section access. I get this response from the API:
{"jsonrpc":"2.0","id":2,"error":{"code":5,"parameter":"","message":"Access denied"}}
Does certificate authentication not give root access to apps? The user account I'm plugging into the authentication header does not have access to these apps, but the script does not get any such error when I run it from a scheduled task on a separate server, using the same user account. However, when I run the script adhoc on the server as an admin, I get the access denied errors.
I found this post Open app error - access denied but I did not find any extra spaces around the section access code.
Direct connections using certificates does not automatically give you root access. But when you use that type of connection, you can impersonate any user by setting the header "X-Qlik-User":
But if the user you are impersonating does not have access to the app according to its section access, then you will still get that "Access denied" error you are encountering.