> 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/ja/work/file-library/shared-spaces.md).

# 共有スペース

共有スペースで部門をまたぐメンバーがファイルを共同利用できます。ロールでアクセスを許可し、作成前にアクセス権を得るメンバーを確認できます。ロールの変更に応じて表示範囲も自動で更新されます。

共有スペースは、営業とマーケティングが共同で使う発売資料など、「組織全体には不要でも、複数の部門で使う」ファイルの保存に適しています。共有スペースのアクセス権は **ロール** に基づいて付与されます。メンバーのロールが条件を満たすと、そのスペースが表示されます。ロールが変わると、表示されるスペースも自動で変わるため、1 人ずつ設定する必要はありません。

## 利用シーン <a href="#use-case" id="use-case"></a>

新製品の発売に向けて、営業部門と製品部門で資料を共同準備する必要があります。マーケティング責任者がファイルライブラリで「A1 発売｜営業・マーケティング共有」という共有スペースを作成し、アクセスを許可するロールとして <mark style="color:blue;">営業部門</mark> と <mark style="color:blue;">製品部門</mark> を選択します。ダイアログ下部には、アクセス権を得るメンバーがすぐに表示されます。その後、別の社員が営業部門に異動しても、責任者による追加設定は不要です。その社員がファイルライブラリにログインすると、このスペースが表示されます。

***

## 共有スペースの作成 <a href="#create-shared-space" id="create-shared-space"></a>

### 1. 作成ダイアログを開く <a href="#open-create" id="open-create"></a>

ファイルライブラリ左側のスペースツリーで、<mark style="color:blue;">共有スペース</mark> の横にある <mark style="color:blue;">＋</mark>（<mark style="color:blue;">共有スペースを作成</mark>）をクリックします。

### 2. 名前とアクセスを許可するロールを設定する <a href="#name-and-roles" id="name-and-roles"></a>

<mark style="color:blue;">スペース名</mark> を入力し、<mark style="color:blue;">アクセスを許可するロール</mark> で対象のカスタムロールを選択します（デフォルトロールは選択できません）。ロールを選択せずに作成し、後から追加することもできます。アクセスを許可するロールがないスペースは、作成者と組織のオーナーにのみ表示されます。組織にカスタムロールがない場合は、「カスタムロールがありません。先にカスタムロールを作成してください」と表示されます。ロール管理権限を持つユーザーは、<mark style="color:blue;">ロール設定へ</mark> をクリックできます。下部の <mark style="color:blue;">アクセス権を得るメンバー</mark> には、選択したロールに所属するメンバーがリアルタイムで表示されます。「共有スペースへの招待を受ける権限」がないメンバーがいる場合も、ここに表示されます。

<figure><img src="https://2584873290-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTvHx8hgwYGDTLD3A7xoW%2Fuploads%2Fgit-blob-7ff36a40432bb0ae490d9ce7e648dd3f41b0d44f%2Ffile-library-shared-space.png?alt=media" alt="共有スペースの作成ダイアログ。アクセスを許可するロールに営業部門と製品部門を選択し、下部でアクセス権を得るメンバーを確認できます"><figcaption><p>作成前にアクセス権を得るメンバーを確認できます</p></figcaption></figure>

### 3. 作成を確定する <a href="#confirm-create" id="confirm-create"></a>

<mark style="color:blue;">確認</mark> を押すと、スペースツリーに共有スペースが表示されます。他のスペースと同様に、共有スペースの最上位にはファイルワークスペースのみ作成できます。ワークスペースでは、<mark style="color:blue;">ここから会話を開始</mark>、ワークスペースの指示、バージョン履歴も利用できます。

***

## 共有スペースを閲覧できるメンバー <a href="#who-can-access" id="who-can-access"></a>

次の 2 つの条件を両方満たすメンバーに、共有スペースが表示されます。

1. 所属するロールが、そのスペースの <mark style="color:blue;">アクセスを許可するロール</mark> に含まれています
2. 所属するロールに <mark style="color:blue;">共有スペースへの招待を受ける権限</mark> があります

作成者は常に閲覧できます。組織のオーナーは招待を受ける権限が不要ですが、所属するロールがアクセスを許可するロールに含まれている必要があります。アクセスを許可するロールがすべて削除された場合も、組織のオーナーは閲覧できます。共有スペースのアクセス権はロールにのみ付与でき、個人を直接指定することはできません。特定のメンバーにアクセスを許可するには、対応するロールにそのメンバーを追加してください。

{% hint style="info" %}
共有スペースの作成や削除、スペース名やアクセスを許可するロールの変更には、<mark style="color:blue;">共有スペースを作成する権限</mark> が必要です。権限設定については、[ロールと権限の管理](https://docs.maiagent.ai/maiagent-user-guide/ja/org/roles/role-permission.md#permission-structure-overview) を参照してください。
{% endhint %}

***

## 編集と削除 <a href="#edit-and-delete" id="edit-and-delete"></a>

* **編集**：スペースの <mark style="color:blue;">共有スペースを編集</mark> を開くと、名前やアクセスを許可するロールを変更できます。アクセスを許可するロールをすべて解除することもできます。変更はスペースのバージョン履歴に記録されます。
* **削除**：内容が残っているスペースは削除できません。先に空にしてから削除してください。
* **アクセスを許可するロールがない場合**（すべて解除した場合や、許可したロールがすべて削除された場合）：作成者と組織のオーナーのみがアクセスできます。必要に応じて、アクセスを許可するロールを再度追加してください。

***

## 関連ページ <a href="#related" id="related"></a>

* [ファイルライブラリ](https://docs.maiagent.ai/maiagent-user-guide/ja/work/file-library.md)
* [ロールと権限の管理](https://docs.maiagent.ai/maiagent-user-guide/ja/org/roles/role-permission.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.maiagent.ai/maiagent-user-guide/ja/work/file-library/shared-spaces.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
