Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

Qlik® Product Spotlight: Discover what’s possible. Get more from our products.
See for yourself. Register today.
New Contributor III

Setup SQL (ODBC) User Directory Connector

Hi all,

I am trying to see if QS allows authentication from an "internal" sql database using my own security model.

I came across a poor piece of documentation on how to try this but it's not very clear.

I have successfully setup the connector however and it has pulled my users into the User section in QS.

What I cannot understand though is how I can now use the account to login to QS from the front end?

In addition there is nothing around the password authentication part - like do I even need to store this in the database?

This part of the system is not clear at all and whilst using LDAP/AD is very well documented, the SQL approach is very poor.

Or perhaps I am misunderstanding this particular functionality, and it's not even designed for this?


Tags (1)
5 Replies
Not applicable

Re: Setup SQL (ODBC) User Directory Connector

Hi all,

I'm in the same conditions, does anyone found a solution?


New Contributor II

Re: Setup SQL (ODBC) User Directory Connector

I used external authentication for this.  Basically I just used QlikAuthNet from Branch.  The user hits the url for the virtual proxy that forwards them to the external authentication (your page).  After you do whatever magic you need to do to authenticate the user, you create a ticket something like:

var req = new Ticket()


  UserDirectory = "DATABASE",

  UserId = "whatevertheuseridis"



That routes them back to the Qlik server which then automatically logs them into that account.

UserDirectory would be whatever name you gave your database user directory.  I called mine, strangely enough, "DATABASE". 


Re: Setup SQL (ODBC) User Directory Connector


this is working quite fine. For c# / .net here is also a sample to make a ticket authentication:




New Contributor III

Re: Setup SQL (ODBC) User Directory Connector

Perhaps a little bit late but:

The ODBC user directories in general have basically nothing to do with authentication. The user directories are just used to look up user attributes, that can be used to limit access to applications etc (stream access rules).

To perform a database based authentication you'll need to set up a custom authentication module as described here: Authentication API

Basically Qlik redirects to the URL that is specified in the virtual proxy config. At this URL you can perform the user  authentication (i.e. offer a login screen and validate that the user against your database). Once you validated the user credentials, you request a QlikTicket using Qlik's Add ticket‌ call as already described above. With this ticket in place you again redirect to the originally requested URL (part of the ticket response). And you're done.

Perhaps the qlik-authentication project on Qlik Branch might be a good point to start, if you're not familiar with this.

Honored Contributor II

Re: Setup SQL (ODBC) User Directory Connector

Community Browser