Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello, I'm trying to use the Engine API to extract information about apps in my Qlik Sense environment, but I'm getting the following error: `Access to the app is denied: UnknownUser`
I'm using the same header as I successfully use for the QRS API ('X-Qlik-User: UserDirectory=<directory>;UserId=<user>'), and I have verified that the user has access to the app I'm trying to fetch details from.
This is the relevant code:
It might be that you simply need to wait for the first request to successfully complete before sending the second request. If you send the second one too early, then the handle you use in that call won't be associated with anything yet.
@Øystein_Kolsrud it seems I was wrong above about it occurring during execution of the second request, I've temporarily removed that request from my code and the UnknownUser error is still occurring, so it seems it is not able to load the app
Hard to say what is wrong in your particular case. Getting the authentication part right can be kind of tricky. Have you looked at at this page?
It gives some instructions regarding setting up connections to the engine. In particular there is "Example 1: Connect directly to Qlik Engine JSON API using certificates" which shows you how to do this in JavaScript.