"User not allowed to open worklist item" from Workspace Inbox
Issue
When opening a task from the Inbox on Workspace, the following error appears:
Symptoms
- The Task List in K2 Management shows that the user is assigned to the task.
- When opening the task from Workspace, the SharedUser parameter is added to the task URL with value equal to the user's FQN, even if no user is currently set to Out of Office. Removing this parameter allows the user to open the task.
eg. https://k2.denallix.com/Runtime/Runtime/Form/ApprovalForm/?SerialNo=15_7&SharedUser=K2SQL:TEST.USER
Troubleshooting Steps
Verify the user currently authenticated through the steps below:
- Login to Workspace.
- Open the developer tools from the browser.
- Go to the Console tab and type in the following: SourceCode.Forms.Settings.User.FQN
- This should return the FQN enclosed in quotation marks:
Ensure that the value is correct and has no trailing space. If there is a trailing space, please check the UserID property for the corresponding entry in the [Form].[UserProfile] table.
FROM [Form].[UserProfile]
WHERE UserID LIKE '%{username}%'
-- Replace {username} as applicable.
After confirming that there is a trailing space in the UserID, you may update the entry as follows:
SET UserID = LTRIM(RTRIM([UserID]))
WHERE ID={id_from_query}
http://help.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#Database_Reference.html