Recipient does not receive a Task Notification when a Task is redirected to them
kbt181982
PRODUCTIssue
New recipients do not receive a Task Notification for a task redirected to them by a Workflow Admin.
This is because the users' (the one redirecting from the K2 Management Task List but is not a K2 Server Admin) claim still flows through and a Workflow Server Admin rights check is done against the claim and fails. If a Server Admin performs a redirection from the Task List, then notifications are sent out.
Symptoms
When a Workflow Admin redirects the task from the Task List on K2 Management, you will see the errors below on the K2 host server logs:
User K2:{Domain}{UserName} does not have Administrator rights.
61007 Permanent failure sending message {Task Notification Subject}: System.FormatException: The specified string is not in the form required for an e-mail address.
Resolution
You may consider the following options to get around the issue:
- Enable/Fix the K2 Claims to Windows Token Service*
- Stop the K2 Service.
- Stop the K2 Claims To Windows Token Service.
- Go to .../K2/Token Service/Bin.
- Make a backup of the K2TokenService.exe.config.
- Edit this file on any text editor.
- Look for: <allowedCallers>
- If there are no users within <allowedCallers> please add (a) the K2 Service account (eg. DENALLIXK2Service) and also your Runtime Application Pool account (eg. DENALLIXK2WebService).
<allowedCallers>
<clear />
<add value="DENALLIXK2Service" />
<add value="DENALLIXK2WebService" />
</allowedCallers> - Save the file.
- Start the K2 Claims To Windows Token Service.
- Start the K2 Service.
- Redirect the task as a user with Server Admin rights
- Redirect the task from K2 Workspace or through a worklist control.
*This is only applicable to AD users on K2 Five. If you are on K2 Cloud, please follow either #2 or #3.