In team collaboration, it’s essential for everyone to clearly understand their roles and permissions to ensure smooth progress. Today, we will learn about role creation and permission management to make teamwork more streamlined and organized.
Don’t worry—this process is simple. We’ll guide you through it step by step, providing guidance at each critical stage. If you encounter any issues, please feel free to reach out to our official forum for assistance.
We need a "Partner" role with specific permissions to participate in task management but without the ability to freely modify others' tasks. This approach allows us to assign tasks and collaborate flexibly.

Introduction to Roles and Permissions: Roles and permissions are essential mechanisms for managing user access and operations. Each user can have multiple roles.
By setting role permissions, we can control user behavior and operations within the system, as well as limit displayed functionality, which is crucial for access control. Using roles and permissions to bind users enables you to manage your system more effectively. As an administrator, you can assign and adjust permissions as needed.

You have successfully created a new role! Next, we need to assign permissions to this role to ensure they can participate in task management.
To ensure that the role permissions are working as expected, we can first assign this role to our own account for testing. It’s straightforward:

Now you can use your account to simulate the "Partner" role experience. Next, let’s see how to switch roles.
Since you’ve assigned yourself the "Partner" role, let's explore how to switch roles.

Once you switch to the "Partner" role, you may notice that there are no visible pages or menus. This is because we haven’t assigned permissions for the role to access specific pages yet. No problem—let’s configure access permissions for the "Partner" role.
Return to Personal Center, switch back to the "Partner" role, and you should now be able to see the task management menu page.

Although the "Partner" role now has access to the task management page, we need to further restrict their operational permissions. We want the "Partner" to:
To achieve this, we need to configure the permissions for the "Tasks." Let’s proceed!

At this point, the Partner role has the permissions to view and edit the task data. Next, we need further controls to ensure they can only edit tasks assigned to them.
Now, we’ll assign a responsible person to each task. By designating a responsible person, we ensure that only the task’s responsible person can modify the task, while others can only view it. To achieve this, we’ll use a relationship field to link the task collection with the user collection.

Next, we need to ensure the "Responsible Person" field is displayed in the task management page’s collection and form, making it easy to assign a responsible person to each task. (If the default display field is set to an ID, simply change the title field to “Nickname” to display names.)

Here comes the highlight! Now, we’ll use NocoBase’s Permission Management to implement a powerful feature: only the responsible person and creator of a task can edit it, while others can only view it. This is where NocoBase’s flexibility truly shines.
We want only the task’s responsible person to be able to edit it, so we’ll set the following conditions:
Click Add, then Confirm.

Now let’s go back to the page to check:
Perfect! When we switch to the Partner role and revisit the page, only tasks for which we are the assignee will can edit tasks correctly.

You may have noticed a new issue:
Since we are not the responsible person for most tasks, we can’t edit the form ourselves, and other colleagues also cannot see task details!
No worries—remember, we assigned the Partner role view permissions for all data earlier?



Done!
If you switch between different users to view the form, you’ll notice that the form sections automatically adjust to show only the operations permitted for each user. All tasks for which a user is responsible will display editing options, while tasks outside their responsibility will only show viewing options.
Switching back to the Root role restores full permissions. This is the powerful permission control system of NocoBase!
Next, you can freely assign task responsibilities, invite teammates to collaborate, and test the permissions we have set.


Have Tom log into the system to check if he can view and edit tasks assigned to him. Based on the permission rules, Tom should only be able to edit tasks he is responsible for, while all other tasks are read-only.
The edit form permissions have now been successfully synchronized across all pages!

Congratulations! By now, you’ve learned how to create roles, assign permissions, and set custom permissions in NocoBase, ensuring that team members can only edit tasks assigned to them. Through these steps, you have established a clear, organized permission management system for team collaboration.
Currently, Tom can view and edit tasks assigned to him, but you may notice he cannot leave comments or engage in task discussions. So, how can we assign Tom permissions to freely comment and participate in discussions? This will be an interesting challenge!
Challenge Hint:
You can revisit the role permission settings and adjust the "Partner" role, especially the collection settings, to see how to allow Tom commenting privileges while ensuring his other task restrictions remain intact.
Give it a try! We’ll reveal the solution in the following section.
In the next chapter, we’ll implement the “Team Member Activity” feature and introduce another powerful module: Workflow. With Workflow, you can enable data flow, trigger various actions, and automate complex business processes in your system. Ready to continue exploring? See you in Chapter 7: Workflow
Explore further and unleash your creativity! If you encounter any issues, don’t forget to check the NocoBase Official Documentation or join the NocoBase Community for discussions.