Question

List all Worklist task o Admin User

  • 20 December 2023
  • 2 replies
  • 41 views

Badge +1

Hi Team,

We have requirement where we would like to see all worklist item assign to the user to the Admin user.

I have implemented with Task SMO but problem i am facing is, if user has not Admin rights he is not able to see any worklist.

 

How we can do this for the normal user or user who does not have Admin rights.

 

 


2 replies

Userlevel 2
Badge +6

Hello @Niks_89 ,

There are a few ways to deal with this scenario.

The first one is to develop your own rest service. Using the Client API will result in return only tasks owned for a user where as using the management API will result in returning in all tasks. The rest api is usually run by the K2 service account allowing the management permissions to work. Some sample code is found below:
CLIENT: https://help.nintex.com/en-US/k2five/DevRef/5.4/Content/Runtime/WF-Client/Retrieve-worklist.html

MANAGEMENT: https://help.nintex.com/en-US/k2five/DevRef/5.4/Content/Runtime/WF-Manage/GlobalWorklist.html

 

The second way is to leverage the Reporting SMOs found in ‘Workflow Reports → Workflow General → Task’. I believe you hit this limitation where you can only see your own tasks unless you are an admin

 

The third way is to enable the Workflow Rest service in Management.
 

When you register the rest service instance, you can specify the service account or another static account that has admin permissions.

You can then use create the service instance from the newly created service instance and use the tasks method.

 

You can also request assistance from the Professional Services team to help with getting this setup if you need assistance

Thanks,

Anthony

Userlevel 2
Badge +10

Maybe the following documentation will help too, there is a caution section.

https://help.nintex.com/en-US/nintexautomation/userguide/5.7/Content/K2-Management-Site/Integration/Workflow-REST-API.htm

Reply