Skip to content

Commit 4b94259

Browse files
committed
Fix block
1 parent 860e9f6 commit 4b94259

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

articles/data-factory/connector-sharepoint-online-list.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,38 @@ The following properties are supported for a SharePoint Online List linked servi
139139
}
140140
```
141141

142+
### Grant permission for using service principal key
143+
144+
The SharePoint List Online connector uses service principal authentication to connect to SharePoint. Follow these steps to set it up:
145+
146+
1. Register an application with the Microsoft identity platform. To learn how, see [Quickstart: Register an application with the Microsoft identity platform](../active-directory/develop/quickstart-register-app.md). Make note of these values, which you use to define the linked service:
147+
148+
- Application ID
149+
- Application key
150+
- Tenant ID
151+
152+
2. Grant SharePoint Online site permission to your registered application by following the steps below. To do this, you need a site admin role.
153+
154+
1. Open your SharePoint Online site link. For example, the URL in the format `https://<your-site-url>/_layouts/15/appinv.aspx` where the placeholder `<your-site-url>` is your site.
155+
2. Search the application ID you registered, fill the empty fields, and click "Create".
156+
157+
- App Domain: `contoso.com`
158+
- Redirect URL: `https://www.contoso.com`
159+
- Permission Request XML:
160+
161+
```xml
162+
<AppPermissionRequests AllowAppOnlyPolicy="true">
163+
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="Read"/>
164+
</AppPermissionRequests>
165+
```
166+
167+
:::image type="content" source="media/connector-sharepoint-online-list/sharepoint-online-grant-permission-admin.png" alt-text="Grant SharePoint Online site permission to your registered application when you have site admin role.":::
168+
169+
> [!NOTE]
170+
> In the context of configuring the SharePoint connector, the "App Domain" and "Redirect URL" refer to the SharePoint app that you have registered in Microsoft Entra ID to allow access to your SharePoint data. The "App Domain" is the domain where your SharePoint site is hosted. For example, if your SharePoint site is located at "https://contoso.sharepoint.com", then the "App Domain" would be "contoso.sharepoint.com". The "Redirect URL" is the URL that the SharePoint app will redirect to after the user has authenticated and granted permissions to the app. This URL should be a page on your SharePoint site that the app has permission to access. For example, you could use the URL of a page that displays a list of files in a library, or a page that displays the contents of a document.
171+
172+
3. Click "Trust It" for this app.
173+
142174
## Dataset properties
143175

144176
For a full list of sections and properties that are available for defining datasets, see [Datasets and linked services](concepts-datasets-linked-services.md). The following section provides a list of the properties supported by the SAP table dataset.

0 commit comments

Comments
 (0)