Skip to main content
Announcements
Defect acknowledgement with Nprinting Engine May 2022 SR2, please READ HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
ericdelaqua
Creator
Creator

Disable all users except Admins and a specified user using API

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

Labels (2)
2 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

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"

cheers Lech, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful to the problem.
ericdelaqua
Creator
Creator
Author

Thanks Lech, I will give this a try and if it works update.