Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

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

Re: QlikSense API, creating "user access rule"

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

2 Replies
Not applicable

Re: QlikSense API, creating "user access rule"

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

Re: QlikSense API, creating "user access rule"

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...