
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to Authenticate GET and POST method using certificate to call NPrinting API from QMC?
Hi All,
We have NPrinting task on Qlik Sense QMC once Qlik job getting done then NPrinting task trigger automatically.
This thing earlier we used to do using window NTLM authentication by using service account user id and password. But in new organization we don't have permission to enter service password manually. So I looking how to authenticate using certificate or some other way for GET and POST method.?
In dev we have permission to enter manual password. We checked it working but UAT we don't have permission. I would to request please help on this to achieve.
Thank you in advance.
Thanks & Regards,
Irshad Ahmad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@iahmad9 you have to use Windows authentication, see:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @iahmad9
As stated in documentation only NTLM authentication is supported in API.
https://help.qlik.com/en-US/nprinting/February2025/APIs/NP+API/index.html?page=14
https://help.qlik.com/en-US/nprinting/February2025/APIs/NP+API/index.html?page=15
cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Lech_Miszkiewicz @David_Friend ,
Thank you for your response,
We don't have permission to enter admin/service credential. How to we can authenticate. Is there alternate option for this.?
This is urgent. I need solution for this as i am working on migration project.
Thanks,
Irshad Ahmad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @David_Friend & @Lech_Miszkiewicz ,
We have created the GET and POST data connection. We have liberty to enter service account id but we don't have permission to enter manual password. Do we have any Command or PowerShell script where can use to enter the password using script.?
Same problem we have with monitoring jobs. We need to enter service credentials for this as well.
It will be great if you could share Command or PowerShell script to insert the service account password.
Regards & Thanks,
Irshad Ahamd

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @iahmad9
sorry - i dont have any scripts to do what you suggest and frankly never heard of such scripts.
This is the reality. Knowing the process should be part of the migration plan and assesing what is required and what steps should be considered should also be part of the migration plan. This is why it is very important to know in projects like that what can/cannot be done so you can raise those issues before starting.
One thing is that you dont need service account credentials to run API. All you need is creadentials of the user who has admin rights set NPrinitng console. If your user is set as NPrinting admin you can use your credentials in GET and POST connections. Maybe that is a workaround you can use?
Also - how are all other Qlik Sense connections configured in that company if they cannot enter passoword for the connection in Qlik Sense? If that company is able to somehow create connections for databases and other sources they can use the same method to create connection for GET and POST method for NPrinting.
I am little bit confused about this.
cheers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
HI @Lech_Miszkiewicz ,
I am agree with you. We are facing data connection problem only in monitoring job and GET and POST method apart from that we are good with ODBC and Marklogic connection and other folder connection.
We have liberty to insert the password using script without human interface. I got script from the community but getting error. First error getting in Connect-Qlik line.
Solved: Update Password in DataConnections automatically - Qlik Community - 104503I
I am executing this script in PowerShell. Could you please suggest how we can resolve error. if this script work i can resolve my issue.
Thanks & Regards,
Irshad Ahmad

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @iahmad9
you are going through unsupported step, besides as described in the link you provided this is script which uses CLI. Have you installed qlik-cli?
Another thing is that this is using internal user sa_api and certificate for authentication - have you configured that?
Another thing is that the script communicates via port 4242 which typically is blocked from outside and you would need to RDP to Qlik Server to run that locally.
Anyway. To be able to help you we would need to understand whether you have installed and configured CLI, from which machine you are executing those scripts and if cert authentication is done properly. With current information it is hard to judge what really happens.
All above aside - you must be aware that you are using officially unsupported method so you taking whole risk on yourself if you damage anything by running those scripts which can happen!
cheers
