> For the complete documentation index, see [llms.txt](https://docs.blockbrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.blockbrain.ai/de/for-admins/classic-microsoft-integrations/create-a-sharepoint-connection/sharepoint-manual-site-setup/manually-grant-sharepoint-site-access.md).

# SharePoint-Websitezugriff manuell gewähren

Dieser Leitfaden bietet eine Schritt-für-Schritt-Anleitung zum Gewähren spezifischer Berechtigungen für SharePoint-Websites für eine bestimmte Zielanwendung.

{% hint style="warning" %}
**Voraussetzungen:** Stellen Sie vor dem Fortfahren sicher, dass Sie **Site-Admin-Rechte** auf der Ziel-SharePoint-Site haben. Sie können dies überprüfen, indem Sie zu `_layouts/15/mngsiteadmin.aspx` auf Ihrer SharePoint-Site navigieren. Außerdem müssen die SharePoint-Site-Berechtigungen auf **Voller Zugriff** festgelegt sein, damit dieser Schritt funktioniert.

Sie können **PnP PowerShell** oder **Microsoft Graph API** verwenden, um der App Zugriff auf bestimmte SharePoint-Sites mit nur **`Lesen`** -Berechtigung zu gewähren.

* 🔗 [PnP PowerShell-Dokumentation](https://pnp.github.io/powershell/cmdlets/Grant-PnPAzureADAppSitePermission.html)
* 🔗 [Microsoft Graph API-Dokumentation](https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins-modernize/understanding-rsc-for-msgraph-and-sharepoint-online) (unten gezeigt)
  {% endhint %}

## 1. Erstellen Sie eine Admin-App

1. Admin-App erstellen mit **`Sites.FullControl.All`** -Berechtigung. Eine Schritt-für-Schritt-Anleitung finden Sie im Abschnitt zur Admin-App auf[Eine SharePoint-Verbindung erstellen](/de/for-admins/classic-microsoft-integrations/create-a-sharepoint-connection.md).

## 2. Abrufen des Zugriffstokens der Admin-App über Postman

1. Verwenden Sie das **`Client-ID`**, **`Client-Geheimschlüssel`**, **`Mandanten-ID`** der Admin-App an **`POST`** zu **`https://login.microsoftonline.com/<tenant_id>/oauth2/token`**

<figure><img src="https://1293758209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIabFtGTeQzwfWCzp8vd6%2Fuploads%2Fm0ibJx9FdcC9lHyFqTCU%2FScreenshot%202025-09-24%20at%2013.55.49.png?alt=media&amp;token=319e7ad6-6af9-4572-adbc-866d398dd42c" alt=""><figcaption></figcaption></figure>

## 3. Abrufen der SharePoint-Site-ID

1. Erstellen Sie eine **`GET`** Anfrage an **`https://graph.microsoft.com/v1.0/sites/`** mit dem **`access_token`** aus dem vorherigen Schritt als **`Bearer-Token`** Auth und speichern Sie die zurückgegebene **`id` .**

<figure><img src="https://1293758209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIabFtGTeQzwfWCzp8vd6%2Fuploads%2FLF6toNu03S2pP3oBVyUR%2FScreenshot%202025-09-24%20at%2013.58.09.png?alt=media&amp;token=36a9f1da-1907-44de-aa1d-71ce7f2111b4" alt=""><figcaption></figcaption></figure>

## 4. **Zuweisen** SharePoint-Site **Berechtigung für die Zielanwendung**

1. Erstellen Sie eine **`POST`** Anfrage an **`http://graph.microsoft.com/v1.0/sites/<site_id>/permissions`** mit folgender JSON-Payload:

```json
{
    "roles": [
        "read"
    ],
    "grantedToIdentities": [
        {
            "application": {
                "id": YOUR_TARGET_APPLICATION_ID,
                "displayName": "displayName"
            }
        }
    ]
}
```

<figure><img src="https://1293758209-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIabFtGTeQzwfWCzp8vd6%2Fuploads%2FhyhhnERd1fgmDdTx8Jim%2FScreenshot%202025-09-24%20at%2014.01.08.png?alt=media&amp;token=a5dc5305-6eaf-4cab-9032-113386c2c856" alt=""><figcaption></figcaption></figure>

## 5. SharePoint-Site auf der Blockbrain-Plattform hinzufügen

1. Weiter mit **`5. SharePoint-Integration in Blockbrain konfigurieren`** bei [Manuelle SharePoint-Website-Einrichtung](/de/for-admins/classic-microsoft-integrations/create-a-sharepoint-connection/sharepoint-manual-site-setup.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.blockbrain.ai/de/for-admins/classic-microsoft-integrations/create-a-sharepoint-connection/sharepoint-manual-site-setup/manually-grant-sharepoint-site-access.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.
