Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1873 Lượt xem

Is there a way that only the HR manager and supervisor can access the employees within a specific department?

For example, I have departments A,B,C,D and I want the employees under department 'A' should only be accessible by their HR Manager and the supervisor

The department A should only be visible to the HR Manager and the supervisor.

How can I do this, please help.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,


Here are two effective methods:

Using Access Groups and Record Rules:

Step 1: Create Access Groups:

Create two new groups: "Dept A HR Manager" and "Dept A Supervisor."

Assign relevant users (HR Manager and Supervisor for Department A) to each group

Step 2: Define Record Rules:

Domain: [('department_id', '=', a_department_id)] (Replace a_department_id with the actual ID of Department A)

Groups: Choose "Read access" and "Write access" for both "Dept A HR Manager" and "Dept A Supervisor" groups.


Hope it helps

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 22
3713
1
thg 3 18
3669
0
thg 5 15
4706
0
thg 5 19
3303
1
thg 2 25
7404