Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Matt45
Former Employee
Former Employee

Qlik Engine JSON API - Access Denied Error (Qlik Sense Enterprise)

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.

1 Reply
Øystein_Kolsrud
Employee
Employee

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":

https://help.qlik.com/en-US/sense-developer/February2021/Subsystems/RepositoryServiceAPI/Content/Sen...

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.