How to hide unnecessary workspaces from employee’s view?
Adjusting role permissions is not helping. Though by clicking it, it shows blank screen so th employees cant access them but I want to remove them altogether for better UI.
Do you want to remove them for everyone or just for certain roles?
For certain roles.
@anum This is built-in, no custom code needed.
Role permissions on the DocType don’t control workspace sidebar visibility. You need to set roles directly on each Workspace.
Steps:
-
Go to the workspace you want to hide (e.g. Leaves, Expenses, Performance)
-
Open it via Awesome Bar → type
Workspace→ find the one you want -
Click the Roles tab
-
Add Row → select only the roles that should see this workspace
-
Save
Users without those roles will have it completely removed from the sidebar not just a blank screen.
Repeat for each workspace: Expenses, Leaves, People, Performance, Recruitment, Shift & Attendance, Tenure.
Reference: https://docs.frappe.io/framework/user/en/desk/workspace/access
