> For the complete documentation index, see [llms.txt](https://docs.maiagent.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/org/overview.md).

# Organization & Member Management

## What Is Organization and Member Management?

MaiAgent's organization and member management feature is like building a "digital office" for your enterprise. Through this feature, you can set up company structures, assign employee positions, configure who can do what, and make team collaboration more organized.

This system is based on **RBAC** (Role-Based Access Control), providing a complete organization management solution that enables enterprises to effectively organize teams, assign permissions, and monitor resource usage.

{% hint style="info" %}
**What is RBAC?**

RBAC is a management approach that "defines positions first, then adds people to positions." For example, you first define what the "Customer Service Agent" role can do, then add Mr. Zhang and Ms. Li to that role. They automatically receive all customer service agent permissions without needing individual configuration for each person.
{% endhint %}

***

## System Architecture

### Three-Tier Structure

MaiAgent uses a clear three-tier architecture: **Organization → Role → Member**

```
Organization
└─ Your Company
   │
   ├─ Role
   │  └─ Position/Department (e.g., Customer Service, Marketing)
   │     │
   │     └─ Member
   │        └─ Employee (e.g., Mr. Zhang, Ms. Li)
```

{% hint style="info" %}
**Simple explanation:**

* **Organization** = Your company
* **Role** = Departments or positions within the company (e.g., Customer Service, Marketing)
* **Member** = Company employees (e.g., Mr. Zhang, Ms. Li)
  {% endhint %}

### How It Works

<figure><img src="https://1593648278-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fmzb5NG9GDzFP2YDKeYVl%2Fuploads%2Fgit-blob-5503ceba3aecfd5845b8e547dd7bd206c16f2c85%2Fimage%20(80).png?alt=media" alt=""><figcaption></figcaption></figure>

**Setup Steps:**

1. **Create an organization**: Set up your company in the system
2. **Create roles**: Create departments or positions within the organization (e.g., Customer Service, Marketing)
3. **Set permissions**: Configure what each role can do (determine feature permissions)
4. **Assign members**: Add employees to their corresponding roles
5. **Automatically effective**: Members automatically receive all permissions for their role

***

## Core Concepts

### Organization

The **Organization** is the top-level management unit, representing your company or team. Each organization has independent members, roles, permissions, and resources.

{% hint style="info" %}
**Simple explanation:** An organization is like a "company." Each company has its own employees (members), departments (roles), and data (AI assistants, knowledge bases, etc.).
{% endhint %}

### Role

A **Role** is a functional unit within the organization that defines a set of permissions and resources.

**Three role types:**

* **Owner Role**: Highest permissions, can manage all settings
* **Default Role**: Basic permissions automatically held by all members
* **Custom Role**: Department or position roles created based on needs

{% hint style="info" %}
**Simple explanation:** A role is like a company "department" or "position" (e.g., Customer Service, Marketing, Manager). Each role has different responsibilities and permissions.
{% endhint %}

### Member

A **Member** is a user within the organization who gains permissions through roles.

**Member types:**

<table><thead><tr><th>Member Type</th><th width="215">Description</th><th>Permission Scope</th></tr></thead><tbody><tr><td>Owner</td><td>The organization creator or a member designated as owner</td><td>Has full access to all resources<br>Can manage organization settings and role permissions</td></tr><tr><td>Regular Member</td><td>A member within a role</td><td>Has the permissions and resources of assigned roles, such as Q&#x26;A, conversation permissions, etc.</td></tr></tbody></table>

{% hint style="info" %}
**Simple explanation:**

* **Owner** = The company's general manager or system administrator who can manage everything
* **Regular Member** = A company employee with different permissions based on their department (role)
  {% endhint %}

### Permission

**Permissions** control which features a member can use.

MaiAgent uses a **hierarchical permission architecture**:

{% hint style="info" %}
**What is a "hierarchical permission architecture"?**

It is like a folder structure:

* **Main permission** = Main folder (e.g., "AI Features")
* **Sub-permission** = Subfolder (e.g., "AI Assistants," "Knowledge Bases," "Crawlers")

**How it works:**

* Checking a main permission automatically includes all sub-permissions
* You can also check only specific sub-permissions for more granular control
  {% endhint %}

### Resource

A **Resource** is a concrete item within the organization that can be assigned to specific roles.

**Resource types:**

* **AI Assistants**: Specify which AI assistants a role can operate
* **Knowledge Bases**: Specify which knowledge bases a role can access
* **Conversation Platforms**: Specify which conversation platforms a role can use

***

## Setup Workflow Guide

{% hint style="success" %}
**Recommended Setup Order**

Follow this order to avoid confusion:

1. ✅ **Create an organization**: Set up your company organization first
2. ✅ **Create roles**: Create the necessary departments or positions within the organization
3. ✅ **Set permissions**: Configure feature permissions for each role
4. ✅ **Assign resources**: Specify which AI assistants, knowledge bases each role can use
5. ✅ **Add members**: Add employees to the organization
6. ✅ **Assign roles**: Assign members to their corresponding roles
   {% endhint %}

***

## Related Pages

Next, you can refer to the following detailed guides based on your needs:

* [Organization Management](/maiagent-user-guide/maiagent-user-guide-en/org/organization.md): How to create, switch, and manage organizations
* [Role Permission Management](/maiagent-user-guide/maiagent-user-guide-en/org/role-permission.md): How to create roles, set permissions, and assign resources
* [Member Management](/maiagent-user-guide/maiagent-user-guide-en/org/member.md): How to add and remove members, and assign roles

***

## Design Advantages

{% hint style="info" %}
Only members within your organization can view and manage all AI assistant-related features under that organization.
{% endhint %}

This design provides:

* **Clear structure**: Organization → Role → Member, a three-tier architecture that is easy to understand
* **Flexible permissions**: Different permission combinations can be individually configured for each role
* **Centralized management**: The organization owner manages all settings uniformly
* **Member flexibility**: A single member can belong to multiple roles simultaneously, participating in different projects or teams
* **Real-time visibility**: Provides real-time information on the organization's operational status
* **Resource control**: Ensures effective management of resource usage


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.maiagent.ai/maiagent-user-guide/maiagent-user-guide-en/org/overview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
