Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear All,
Is it possible through API to disable all Nprinting Users except for admin and a specified user and how can we archive this?
My goal is to allow for ad-hoc report generation for specific users. I have all Nprinting tasks setup in QMC so I want to be able to disable all the users BUT ONE, then run a specific task which will only get delivered to the user not disabled.
Appreciate any ideas on this.
Thanks
Hi,
I have written library NPrinting.qvs which will be good reference for this:
https://nprintingadventures.wordpress.com/2019/04/08/nprinting-api-qlik-rest-subroutines/
There is no direct subroutine yet - I will work on it during my Christmas break :).... but current NP_CreateUpdateUsers subroutine can be easily tweaked by you to use PUT method to update user record:
https://help.qlik.com/en-US/nprinting/June2019/APIs/NP+API/index.html?page=61
also have a look at other subroutines how to change method from POST to PUT using POST connection and HTTPHEADER "X-HTTP-Method-Override" "PUT"
Thanks Lech, I will give this a try and if it works update.