> For the complete documentation index, see [llms.txt](https://docs.realmjoin.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/collab/list-sharepoint-sitecollection-permission.md).

# SharePoint サイト コレクションのアクセス許可を一覧表示

SharePoint サイトの管理者とメンバーを一覧表示

### 説明

SharePoint Online サイト コレクションにアクセスできる対象を表示します。対象は、サイト コレクション管理者と Owners、Members、Visitors グループのメンバーです。各エントリには、ユーザー、Entra ID グループ、Security Group、または SharePoint グループなどの種類が表示されます。何も変更されません。

### パラメーターの動作

* `SiteUrl` サイト コレクションのルートを指している必要があります（たとえば `https://contoso.sharepoint.com/sites/marketing`）、サブサイトではありません。サブサイトの URL でも結果は返りますが、その内容は親のサイト コレクションを示します。この場合、runbook は警告を記録します。
* Owners、Members、Visitors グループは、サイトの関連グループ プロパティを使用して解決され、ローカライズされたグループ名の一致ではないため、テナントの言語に関係なくレポートは正確です。3 つのグループのいずれかが存在しない場合（Teams 接続サイトで一般的です）、失敗を引き起こす代わりに「未構成」として報告されます。

### 場所

Organization → Collab → SharePoint サイト コレクションの権限一覧

**完全な Runbook 名**

rjgit-org\_collab\_list-sharepoint-sitecollection-permission

### 詳細

| プロパティ    | 値                                                                       |
| -------- | ----------------------------------------------------------------------- |
| バージョン    | 1.2.0                                                                   |
| 必須モジュール  | <p>RealmJoin.RunbookHelper (>= 0.8.10)<br>PnP.PowerShell (>= 3.4.1)</p> |
| スケジュール可能 | いいえ                                                                     |

### アクセス許可

#### アプリケーションのアクセス許可

* **型**: Office 365 SharePoint Online
  * Sites.FullControl.All
    * *Connect-PnPOnline -ManagedIdentity を介して接続し、対象のサイト コレクションに対して Get-PnPWeb、Get-PnPSite、Get-PnPSiteCollectionAdmin、Get-PnPGroupMember を呼び出します。特に Get-PnPSiteCollectionAdmin には読み取り専用のサイト アクセスよりも多くの権限が必要なため、Sites.Read.All では不十分です。Sites.Selected を使用しなかったのは、各サイトの同意をこの runbook の管理外で事前に付与する必要があり、この runbook では任意の $SiteUrl に対してそれを保証できないためです。*

#### 権限に関する注意事項

Office 365 SharePoint Online API（App ID 00000003-0000-0ff1-ce00-000000000000）に対する 'Sites.FullControl.All' アプリケーション権限の管理者同意を、Azure Automation アカウントのシステム割り当てマネージド ID に付与してください。SharePoint の app-only-via-managed-identity による同意は、標準の Microsoft Graph app-role 自動化で使用される Graph 権限の方法では割り当てられません。割り当てコマンドについては、この runbook のドキュメント ファイルを参照してください。

### パラメーター

#### SiteUrl

サイトの完全な URL。たとえば <https://contoso.sharepoint.com/sites/marketing。>

| プロパティ    | 値               |
| -------- | --------------- |
| 必須       | true            |
| 既定値      |                 |
| 型        | 文字列             |
| ポータルの表示名 | サイト コレクションの URL |

[Runbook リファレンスの概要に戻る](https://docs.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references.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.realmjoin.com/ja/zi-dong-hua/runbooks/runbook-references/org/collab/list-sharepoint-sitecollection-permission.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.
