How to create different desk layouts, based on user role.

I am looking for some guidance on how to create different desk (workspace) layouts, which we can link to a role or role profile. We can edit the workspace for a module, but need the layouts to be role driven.

This is for ease of maintenance and to create a clean UI for each role.

Any guidance would be appreciated.

1 Like

For role-based workspace layouts in Frappe, the simplest approach is:

  1. Create a separate Public Workspace for each role e.g. “Sales Rep Desk”.
  2. In each workspace’s settings, assign the Roles that should see it users without those roles won’t see it.
  3. Set the Home Page field on the Role doctype to point to that workspace, so users land there after login.

If you need more granular control (whitelist/blacklist per workspace), check out the community app workspaceperms:

This covers most use cases without any custom development.

1 Like

Hi,
Thanks for the assistance. I suspect it is related to the bug in V16 with creating a new workspace.

As soon as new workspaces can be created, I will follow your guidance.
Thank you.

2 Likes