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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
aguirre
Creator
Creator

Execute call from Extension to a QRS API with another user

Hello,

I have some QRS calls in an extension in a dashboard.

 

I would like to run them as another user (with other permission) instead of the one that is logged in the dashboard.

 

I have tried something like this (which work from some code outside an Extension) with no luck:

httpHeader["X-Qlik-User"] = " UserDirectory=Internal;UserId=sa_repository";

 

Is it possible and can provide me some code?

 

 

 

 

 

Labels (3)
1 Solution

Accepted Solutions
alex_colombo
Employee
Employee

Hey @aguirre , we are discussing similar requirement here. As mentioned in the link, I would not run any API call with impersonation from frontend.

The method mentioned by you doesn't work in a fronend API call. That method works when you are authenticating API call using Qlik certificates and you need to impersonate a user.

View solution in original post

1 Reply
alex_colombo
Employee
Employee

Hey @aguirre , we are discussing similar requirement here. As mentioned in the link, I would not run any API call with impersonation from frontend.

The method mentioned by you doesn't work in a fronend API call. That method works when you are authenticating API call using Qlik certificates and you need to impersonate a user.