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: 
hugmarcel
Specialist
Specialist

Assign User to NPrinting Task with REST API

How is it possible to assign a user to an NPrinting Task with API Version 1.11.1 (May 2021)?

I do find assignments

/users/{id}/filters
/users/{id}/groups
/users/{id}/roles

only, but not for tasks.

I manage to create new users with the REST API.

Thx - Marcel

Labels (2)
1 Solution

Accepted Solutions
Ruggero_Piccoli
Support
Support

Hi,

You can suggest new features, like APIs for tasks management, by posting or voting in https://community.qlik.com/t5/Labels-page/bd-p/Category_Labels?categoryId=qlik-ideas&corenode=boards...

Official documentation about APIs is in https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/Extending/Intro-Extending.htm.

In this article https://community.qlik.com/t5/Qlik-NPrinting-Documents/How-to-manage-Qlik-NPrinting-users-by-using-A... I made some examples of managing users via APIs with PostMan. I suggest to test and take practice with PostMan in case you are not familiar with APIs.

I hope this helps.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.

View solution in original post

4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Supported options:

There is no official API to do that! Full stop! My approach is usually to put group into Task and manage USER<->Group association using API

Unsupported option:

There is also undocumented and unsuported "NPE" API which you can figure out by using web browser developer tool to check what is done when you access Qlik NPrinting using admin console and assign users to task. You can preview all requests there...

https://community.qlik.com/t5/Qlik-NPrinting-Discussions/NPRINT-API-TASK-POST-PUT-DELETE/td-p/164655...

 

cheers

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.
hugmarcel
Specialist
Specialist
Author

"put group into Task and manage USER<->Group association using API" seems a good way. However, It would be nice to have api methods available for all tasks that can be done in administrator.

NPE-Feature: I do not know about this. Is it possible to provide more examples or some minimal documentation at least. Thank you.

Cheers

Ruggero_Piccoli
Support
Support

Hi,

You can suggest new features, like APIs for tasks management, by posting or voting in https://community.qlik.com/t5/Labels-page/bd-p/Category_Labels?categoryId=qlik-ideas&corenode=boards...

Official documentation about APIs is in https://help.qlik.com/en-US/nprinting/May2021/Content/NPrinting/Extending/Intro-Extending.htm.

In this article https://community.qlik.com/t5/Qlik-NPrinting-Documents/How-to-manage-Qlik-NPrinting-users-by-using-A... I made some examples of managing users via APIs with PostMan. I suggest to test and take practice with PostMan in case you are not familiar with APIs.

I hope this helps.

Best Regards,

Ruggero



Best Regards,
Ruggero
---------------------------------------------
When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads with a LIKE if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads with LIKEs if you feel additional info is useful to others.
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

RE NPE api -> I said before - there is no documentation!

You have to inspect everything you do in NPrinting admin console using web browser developer tools and recreate all required requests in your tool (from authentication, obtaining cookie etc).

I understand that this is very time consuming and painful process but if you really want to have a API endpoint - there is one used by interface. It is not documented as it meant to be used only by interface and it may change between versions.

see GIF below

2021-07-06_19-55-39 (1).gif

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.