Skip to main content
Nintex Community Menu Bar
Knowledge Base

How to set Out of Office on behalf of users without using K2 Management

  • June 28, 2023
  • 0 replies
  • 188 views

Forum|alt.badge.img+7

Problem

If you have a scenario where you need to configure Out of Office for a user whose identity has been disabled, for the purpose of forwarding that user's task to another user, you will be unable to do so as you cannot find the user in K2 Management.

 

Solution

You can use the SmartObject Service Tester on your K2 server to help you set Out of Office for a user.

 

1. On your K2 server, open SmartObject Service Tester

2. Look for this SmartObject called 'Task List Share'

3. Execute that SmartObject, select the method 'Update Worklist Share'

4. Fill in the following (replace the usernames in UserName and WorkTypes) :

 

ShareType: OOF

UserName: K2:DOMAIN\Disabled_User

WorkTypes: [{'ID':0,'Name':'K2:DOMAIN\\Disabled_User','Destinations':[{'DestinationType':'User','DisplayName':'','ID':0,'Name':'K2:DOMAIN\\Forwarded_User'}],'WorkTypeExceptions':[]}]

 

5. Execute the 'Update Worklist Share' method after filling the properties in step 4

6. Go to K2 Management, Users, Out of Office. You should see an entry for the disabled user. You can edit that entry to turn on Out of Office, or change who you want to forward the task to.