Configure Permission Templates
Dify Enterprise provides admin-level RBAC templates to help organization administrators define the default permission structure for new workspaces. Admin console templates do not directly change permissions in existing workspaces. They define the initial roles and resource permission levels that will be inherited when a new workspace is created.What You Can Configure
In the admin console, go to Roles & Permissions. You can configure two types of templates:Workspace Role Templates
Workspace role templates define what members can do in a workspace. When a new workspace is created, it inherits the roles configured in this template. To open the page, go to Admin Console → Roles & Permissions → Workspace Role Templates. The page lists all default workspace roles, including:System Preset Roles
System preset roles are built-in roles provided by Dify. They are used to keep permissions stable during upgrades and provide a reliable default role model for new workspaces. Common system preset roles include:
System preset roles can’t be removed or edited.
Enterprise Custom Roles
Enterprise custom roles are roles created by enterprise administrators. They can be used to define permission models that match your organization’s internal responsibilities. You can:- Create a custom role.
- Edit the role name, description, and permissions.
- Remove the role if it is no longer needed.
Create a Role
- Click Create Role.
- Enter a role name.
- Add a role description.
- Select the permissions that should be granted to this role.
- Click Confirm.
Edit a Role
- Click Detail for the role you want to edit.
- Review the role name, description, and selected permissions.
- Update the editable fields.
- Click Save.
Remove a Custom Role
Only enterprise custom roles can be removed.- Click Remove next to the custom role.
- In the dialog, type the confirmation text and click Remove.
Resource Permission Set Template
Resource permission set templates define reusable resource permission levels for new workspaces. These templates do not decide who can access a resource. Instead, they define what a member can do after they are assigned a permission level on a specific resource. To open the page, go to Admin Console → Roles & Permissions → Resource Permission Set Template. The page contains three tabs:
New workspaces inherit these permission set templates by default. Workspace administrators can later adjust permission sets inside their own workspace.
Default App Permission Sets
Default Knowledge Base Permission Sets
Default Agent Permission Sets
Create a Permission Set
- Open the tab for the resource type, then click its create button, such as Create agent permission set.
- Enter a name and a description.
- Select the resource permissions to include. See Permission Reference for what each one allows.
- Click Confirm.
Edit a Permission Set
- Click the … menu next to a permission set.
- Select Edit.
- Update the name, description, or granted permissions.
- Click Confirm.
Delete a Permission Set
- Click the … menu next to a permission set.
- Select Delete.
- Confirm the deletion.
Important Notes
- Admin console templates apply to new workspaces.
- Existing workspaces keep their current role and permission configurations unless they are manually updated.
- Workspace roles define what members can do at the workspace level.
- Resource permission sets define reusable permission levels for apps, knowledge bases, and agents.
- Resource access still needs to be configured on the specific resource when member-level access control is required.
Recommended Setup Flow
- Configure Workspace Role Templates first.
- Configure Resource Permission Set Template for apps, knowledge bases, and agents.
- Create a test workspace.
- Verify that the new workspace inherits the expected roles and permission sets.
- Assign members to roles and test resource access behavior.