<-- Back

Workflow access rights: Displaying System.User name in Mendix Workflows

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

To work around the access restrictions of the 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.
Follow these steps:
  1. Make sure the Administration module is installed (it contains Administration.Account entity)
  2. Configure the correct user entity in the Workflow settings: Open App Settings > Workflows tab, and set the User entity to Administration.Account.
  3. Set the correct data path in widgets or snippets. When displaying assignee details, use the path to the FullName attribute WorkflowUserTask_Assignees/Account/FullName. This ensures that the access rules from Administration.Account apply instead of those from System.User.
  4. 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.
This setup enables the display of assignee names in workflows while maintaining secure and proper access configurations.

Internal information related

  • 246807
  • C014CARM7LK/p1745321038815789

Additional information 

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.