Task assigned to destination user with wrong security label
kbt138572
PRODUCTIssue
A workflows' client event is set to assign a task to a user on a custom security label, but when a process instance is started, the task gets assigned to a user with the same username, but on the default K2 security label.
For example, the correct destination user should be CustomLabel:USER1. But when the process instance starts running, the report shows that the client event task gets assigned to K2:DOMAINUSER1 instead.
Symptoms
- The K2 environment has other custom security labels configured.
- The client events' destination user is being assigned dynamically, such as using a SmartObject to retrieve the destination users' username.
- This issue will not occur if the destination user is set by dragging the user from the context browser.
- This issue will not occur if the destination user is set by typing the users' FQN (eg. CustomLabel:USER1)
Troubleshooting Steps
- If you are dynamically assigning the destination user by retrieving the destination user from a SmartObject, please test the SmartObject to make sure it is returning the correct user.
- Make sure the destination user above can be resolved. Test this by doing the following:
- Open SmartObjects Service Tester
- Expand SmartObject Explorer > All SmartObjects
- Select 'UMUser', and execute it
- Select the 'Get User Details', enter the destination user's FQN (eg. CustomLabel:USER1, K2:DENALLIXBob), and execute the method
- If the destination user can be resolved, you should see the details of the user being shown
3. If the correct user is being returned, make sure your worflows' client event is using the correct SmartObject property in the destination user.
Therefore, if your SmartObject does not return a property that contains the user's FQN, please update your data source accordingly so that the SmartObject will return the FQN.