I’m working on a custom Frappe app for managing vehicle fleet. Inside the app, I introduced custom roles to control access to various resources/doctypes. I’ve created new User and Employee records, assigned them to these roles, and added the roles to the permissions array for all doctypes in my app. Essentially, all the expected setup is in place.
However, I’m facing an issue:
When logged in as a Fleet Manager (one of the custom roles), I’m unable to see the full list of records for several doctypes. Instead, I always see an orange-colored “cancel filter” icon at the top-right of the list view. Clicking it opens a modal showing that the data is being auto-filtered by certain parameters - mostly the Employee ID of the auth user.
For example, when I try to view the list table for Trips, Vehicle Assignments, etc., the system filters out all records except those associated with my employee record. In the screenshot below, there are vehicle assignment records in the database, but I can’t see them on the table because they’re being filtered out.
I experience the same problem when creating a record that depends on selecting/linking an employee. For example, when attempting to select a Driver (Employee) in order to create a new vehicle assignment record, the employee link field only shows the current auth user’s employee record, even though other employees exist. No other employee appears in the dropdown. See the screenshot below.
To resolve this, I opened the Role Permission Manager and granted the Fleet Manager role all permissions for doctypes like Employee and Vehicle Assignment. But even after doing that, the employee dropdown still only shows my own record, and the list views remain filtered. See screenshot below.
How can I fix this automatic filtering?
Is there a setting or permission I’m missing that prevents these doctypes and link fields from being restricted to the currently logged-in employee?
Any guidance will be greatly appreciated.




