You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/data-factory/connector-sharepoint-online-list.md
+76-38Lines changed: 76 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: jianleishen
6
6
ms.subservice: data-movement
7
7
ms.custom: synapse
8
8
ms.topic: conceptual
9
-
ms.date: 01/05/2024
9
+
ms.date: 08/29/2024
10
10
ms.author: jianleishen
11
11
---
12
12
# Copy data from SharePoint Online List by using Azure Data Factory or Azure Synapse Analytics
@@ -33,38 +33,6 @@ Specifically, this SharePoint List Online connector uses service principal authe
33
33
> [!TIP]
34
34
> This connector supports copying data from SharePoint Online **List** but not file. Learn how to copy file from [Copy file from SharePoint Online](#copy-file-from-sharepoint-online) section.
35
35
36
-
## Prerequisites
37
-
38
-
The SharePoint List Online connector uses service principal authentication to connect to SharePoint. Follow these steps to set it up:
39
-
40
-
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:
41
-
42
-
- Application ID
43
-
- Application key
44
-
- Tenant ID
45
-
46
-
2. Grant SharePoint Online site permission to your registered application by following the steps below. To do this, you need a site admin role.
47
-
48
-
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.
49
-
2. Search the application ID you registered, fill the empty fields, and click "Create".
:::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.":::
62
-
63
-
> [!NOTE]
64
-
> 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.
| type | The type property must be set to: **SharePointOnlineList**. | Yes |
105
73
| siteUrl | The SharePoint Online site url, e.g. `https://contoso.sharepoint.com/sites/siteName`. | Yes |
106
-
| servicePrincipalId | The Application (client) ID of the application registered in Microsoft Entra ID. Refer to [Prerequisites](#prerequisites) for more details including the permission settings.| Yes |
107
-
| servicePrincipalKey | The application's key. Mark this field as a **SecureString** to store it securely, or [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). | Yes |
74
+
| servicePrincipalId | The Application (client) ID of the application registered in Microsoft Entra ID. | Yes |
75
+
| servicePrincipalCredentialType | Specify the credential type to use for service principal authentication. Allowed values are `ServicePrincipalKey` and `ServicePrincipalCert`. | No |
76
+
|***For ServicePrincipalKey***|||
77
+
| servicePrincipalKey | The application's key. Mark this field as a **SecureString** to store it securely, or [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). Refer to this [section](#grant-permission-for-using-service-principal-key) for more details including the permission settings. | No |
78
+
|***For ServicePrincipalCert***|||
79
+
| servicePrincipalEmbeddedCert | Specify the base64 encoded certificate of your application registered in Microsoft Entra ID, and ensure the certificate content type is **PKCS #12**. Mark this field as a **SecureString** to store it securely, or [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). Refer to this [article](/sharepoint/dev/solution-guidance/security-apponly-azuread) for permission settings.| No |
80
+
| servicePrincipalEmbeddedCertPassword | Specify the password of your certificate if your certificate is secured with a password. Mark this field as a **SecureString** to store it securely, or [reference a secret stored in Azure Key Vault](store-credentials-in-key-vault.md). | No |
81
+
||||
108
82
| tenantId | The tenant ID under which your application resides. | Yes |
109
83
| connectVia | The [Integration Runtime](concepts-integration-runtime.md) to use to connect to the data store. If not specified, the default Azure Integration Runtime is used. | No |
110
84
111
-
112
-
**Example:**
85
+
**Example 1: Using service principal key authentication**
113
86
114
87
```json
115
88
{
@@ -119,16 +92,81 @@ The following properties are supported for a SharePoint Online List linked servi
"value": "<base64 encoded string of (.pfx) certificate data>"
124
+
},
125
+
"servicePrincipalEmbeddedCertPassword": {
126
+
"type": "SecureString",
127
+
"value": "<password of your certificate>"
128
+
},
129
+
"tenantId": "<tenant ID>"
130
+
},
131
+
"connectVia": {
132
+
"referenceName": "<name of Integration Runtime>",
133
+
"type": "IntegrationRuntimeReference"
134
+
}
135
+
}
136
+
}
137
+
```
138
+
### Grant permission for using service principal key
139
+
140
+
The SharePoint List Online connector uses service principal authentication to connect to SharePoint. Follow these steps to set it up:
141
+
142
+
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:
143
+
144
+
- Application ID
145
+
- Application key
146
+
- Tenant ID
147
+
148
+
2. Grant SharePoint Online site permission to your registered application by following the steps below. To do this, you need a site admin role.
149
+
150
+
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.
151
+
2. Search the application ID you registered, fill the empty fields, and click "Create".
:::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.":::
164
+
165
+
> [!NOTE]
166
+
> 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.
167
+
168
+
3. Click "Trust It" for this app.
169
+
132
170
## Dataset properties
133
171
134
172
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.
@@ -235,7 +273,7 @@ You can copy file from SharePoint Online by using **Web activity** to authentica
1. Follow the [Prerequisites](#prerequisites) section to create Microsoft Entra application and grant permission to SharePoint Online.
276
+
1. Follow the [Grant permission for using service principal key](#grant-permission-for-using-service-principal-key) section to create Microsoft Entra application and grant permission to SharePoint Online.
239
277
240
278
2. Create a **Web Activity** to get the access token from SharePoint Online:
0 commit comments