Role Permission Issues in Custom Fleet App - Lists & Link Fields Are Auto-Filtered by Employee ID

Role Permissions grant access to a document. User Permissions filter access by link fields.

If you want a manager to see Leave Requests just for their department, for example, you would create:

  • a Role Permission that grants visibility of all Leave Requests
  • A User Permission that restricts that visibility only to documents linked to the desired department.

This is powerful but unintuitive (and, in my opinion, dangerous).

In your case, the existence of a User Permission constraining Employee links is preventing your intended functionality. If you delete all User Permissions, it will work the way you intend. This may open up permissions in the HR module, however, which probably isn’t your intention.

if I were in your shoes, I’d probably create a new DocType “Driver” and have the employee record link to that. Changing defaults for Employee is likely to have many unintended effects.

1 Like