Issue
In a Mendix application, a user cannot see the name of the user task assignee when it is not assigned to them. For example, when the administrator views the task inbox, they will not be able to see the names of assigned users, except if the task is assigned to the administrator.
Environment
Studio Pro v9.0.1 and newer
Cause
This issue is caused by the entity access rules of the built-in System.User entity. In Mendix, the association WorkflowUserTask_Assignees links the System.WorkflowUserTask entity to System.User, and access to user attributes, such as the name, is restricted by default. Unless the current user has permission to manage the role of another user object, attribute values like Name will not be readable via the System.User association.
Solution/Workaround
System.User entity and allow displaying the assignee’s full name in a workflow, the Administration.Account entity (a specialization of System.User) can be used. This avoids modifying user management rights and ensures appropriate access to attributes such as FullName.
- Make sure the Administration module is installed (it contains
Administration.Accountentity) - Configure the correct user entity in the Workflow settings: Open App Settings > Workflows tab, and set the User entity to
Administration.Account. - Set the correct data path in widgets or snippets. When displaying assignee details, use the path to the
FullNameattributeWorkflowUserTask_Assignees/Account/FullName. This ensures that the access rules fromAdministration.Accountapply instead of those fromSystem.User. - The Workflow Commons module includes pre-configured snippets such as
Snip_UserTask_Assignees, which are already set up to use the appropriate association and entity path.
Internal information related
- 246807
- C014CARM7LK/p1745321038815789
Additional information
- Mendix documentation:
0 Comments