> For the complete documentation index, see [llms.txt](https://lenef.gitbook.io/erpfactory/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lenef.gitbook.io/erpfactory/quan-ly-phan-quyen-nguoi-dung/tao-va-phan-quyen-truong-phong.md).

# Tạo và phân quyền trưởng phòng

Mỗi phòng ban đều có trưởng phòng quản lý. Chức năng này cho phép tạo và phân quyền quản lý cho các trưởng phòng.

Chức năng này được sử dụng bởi quản lý cấp cao (Admin).

<figure><img src="/files/DXO9K45wPSXV3sddzLiN" alt=""><figcaption><p>Chọn chức năng thiết lập</p></figcaption></figure>

Chức năng cho phép quản lý danh sách cấp trưởng phòng, cho phép chỉnh sửa hoặc thêm mới:

<figure><img src="/files/qevsosLc2kynMa7H7gcR" alt=""><figcaption><p>Danh sách người dùng</p></figcaption></figure>

Thêm mới người dùng:

<figure><img src="/files/R178zomemI1b8qlK2zs9" alt=""><figcaption><p>Thêm mới người dùng</p></figcaption></figure>

Khi thêm mới người dùng thì danh sách các quyền tương ứng cũng được liệt kê ra bao gồm:

* Quản lý mua hàng
* Quản lý sản xuất
* Quản lý kho
* Quản lý nhân sự
* Quản trị
* Chức năng khác

Mỗi chức năng đều bao gồm 3 quyền: Admin (người có quyền cao nhất với chức năng đó), người dùng thông thường (các nhân viên nhập liệu, tạo hoá đơn, ...) và quyền chỉ xem


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lenef.gitbook.io/erpfactory/quan-ly-phan-quyen-nguoi-dung/tao-va-phan-quyen-truong-phong.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
