Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QlikSense API, creating "user access rule"

Hi,

I have a problem with QlikSense API related to User Access Rule (licensing)

I would like to create a specific User Access Rule through API, but I can’t find any method like that.

When I captured XHR api calls in Chrome Tools, I can see that it only works when I am logged in in QMC as RootAdmin.

Is there any way to create User Access Rule programmatically through API (QRS)?

I believe I need to get X-Qlik-Session somehow?

Cheers,

Adam

1 Solution

Accepted Solutions
Not applicable
Author

I've just found the solution for that problem.

I traced XHR requests from Qlik Management Console (QMS) and did 2 very similar requests.

The first one to:

qrs/License/UserAccessGroup

The second one to:

qrs/SystemRule

wIth RootAdmin right and it worked.

Hopefully, it will be useful for others.

Adam

View solution in original post

2 Replies
Not applicable
Author

I've just found the solution for that problem.

I traced XHR requests from Qlik Management Console (QMS) and did 2 very similar requests.

The first one to:

qrs/License/UserAccessGroup

The second one to:

qrs/SystemRule

wIth RootAdmin right and it worked.

Hopefully, it will be useful for others.

Adam

Not applicable
Author

Do you mean you saw the XHR requests hit a URL,

And therefore we can use that URL as a "RESTful" API for creating and managing rules?

(i.e. I don't need to use the UI?)

I want a technique to "programmatically" create and manage rules, and I'm not sure the best technique...