Hiding unnecessary Workspaces

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:

  1. Go to the workspace you want to hide (e.g. Leaves, Expenses, Performance)

  2. Open it via Awesome Bar → type Workspace → find the one you want

  3. Click the Roles tab

  4. Add Row → select only the roles that should see this workspace

  5. 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

1 Like