# 共有レポートコマンド

### 共有レポートコマンド <a href="#share-report-command-details" id="share-report-command-details"></a>

共有レコードおよび共有フォルダのレポートを表示します。サマリー、レコード単位の詳細、ユーザー単位のフィルター、共有フォルダの一覧、所有者向けレポートなど、複数のモードに対応します。

<details>

<summary>DotNet CLI</summary>

**近日公開**

</details>

<details>

<summary>DotNet SDK</summary>

**近日公開**

</details>

<details>

<summary>PowerCommander</summary>

**コマンド:** `Get-KeeperShareReport`

共有レコードおよび共有フォルダのレポートを表示します。サマリー、レコード単位の詳細、ユーザー単位のフィルター、共有フォルダの一覧、所有者向けレポートに対応します。

**パラメーター:**

`-Format` - 出力形式: `table`、`json`、または `csv`

`-Output` - レポートをファイルに書き出すパス

`-Record` - 共有情報を表示するレコード名またはUID

`-Email` - レポートを絞り込むユーザーのメールアドレスまたはチーム名

`-Owner` - レポートにレコードの所有者情報を含めます。

`-ShareDate` - 各レコードが共有された日付をレポートに含めます。エンタープライズのレポート実行権限を持つ管理者のみが利用できます。所有者向けレポート (`-Owner`) にのみ適用されます。

`SharedFolders` - レコードの代わりに共有フォルダの詳細を表示します。`-Email` と併用します。

`-Folders` - 共有フォルダのみにレポートを限定します (共有レコードは除外)

`-ShowTeamUsers` - チーム共有を展開し、チームメンバー個人を表示します。エンタープライズ管理者が必要です。

**例:**

{% code overflow="wrap" %}

```powershell
PS > Get-KeeperShareReport 
Share Report Summary

Shared To                     Records Shared Folders
---------                     ------- --------------
test+qa@example.com               1
test1@example.com                 170 2
share_test_team                   170 2
```

{% endcode %}

</details>

<details>

<summary>Python CLI</summary>

**コマンド:** `share-report`

**フラグ:**

* `--format` 出力形式 {table,csv,json}
* `--output` 結果ファイルの出力パス (形式が `table` のときは無視)
* `-r, --record` レコード名またはUID
* `-e, --email` ユーザーのメールアドレスまたはチーム名
* `-o, --owner` レコードの所有者情報
* `--share-date` レコードが共有された日付をレポートに含めます。詳細な所有者向けレポートにのみ適用され、レポート実行権限を持つユーザーのみが参照できます。例: `share-report -v -o --share-date --format table`
* `-sf, --shared-folders` 共有フォルダの詳細表示 (省略時はレコード)
* `-v, --verbose` 詳細情報の表示
* `-f, --folders` 共有フォルダのみに限定 (共有レコードは除外)
* `-tu, --show-team-users` 共有フォルダのチームメンバー表示 (`--folders` / `-f` と併用。管理者以外では無視)

**例:**

```
My Vault> share-report --email <email>
My Vault> share-report --record 
```

</details>

<details>

<summary>Python SDK</summary>

**関数:**

```python
def generate_report(self) -> List[SharedRecordReportEntry]:
        """Generate the shared records report.
        
        Returns:
            List of SharedRecordReportEntry objects containing share information
        """
        records = self._get_records_to_report()
        if not records:
            return []
```

</details>


---

# Agent Instructions: 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://docs.keeper.io/keeperpam/jp/commander-sdk/keeper-commander-sdks/sdk-command-reference/reporting-commands/share-report-command.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.
