# Onedrive Export Integration [OneDrive Import Integrationの詳細を見る](https://docs.treasuredata.com/display/INT/OneDrive+Import+Integration)。 ジョブ結果を直接OneDriveアカウントに送信できます。 以下のトピックに進んでください: ## 前提条件 - [TD Toolbelt](https://toolbelt.treasuredata.com/)を含むTreasure Dataの基本知識 - OneDriveまたはSharePointアカウント - 認可されたTreasure Dataアカウントアクセス ## TD Consoleを使用して接続を作成 ### 新しい接続を作成 データ接続を設定する際、統合にアクセスするための認証を提供します。Treasure Dataでは、認証を設定してからソース情報を指定します。 Integrations Hub -> Catalogに移動し、OneDriveを検索して選択します。 ![](/assets/onedrive-export-integration-2024-02-15-1.2c8eeb7e101e3464da19dcc075f123f5cfaf894a1036c76162f7a1d02284c24a.94ab41d7.png) 以下のダイアログが開きます。 ![](/assets/onedrive-export-integration-2024-02-15-2.03fcfe97f1dcd2b7fac2cbcd0a2c1890e73fb78312b7c631a84bcef5b9123a85.94ab41d7.png) Treasure Data OneDriveへのアクセスには、OAuth2認証が必要です。この認証では、ユーザーが手動でTreasure DataアカウントをそれぞれのOneDriveアカウントに接続する必要があります。 MicrosoftテナントのAdmin ユーザーまたは通常のユーザーがコネクターに認証する方法に影響する2つの認証設定があります: - **直接ユーザー認証:** ユーザーのMicrosoftテナントは、管理者による事前承認を必要としません。組織内のすべてのユーザーは、管理者による事前承認なしで、OAuth認証フローを通じて直接コネクターを認証できます。 - **管理者による事前承認が必要:** ユーザーのMicrosoftテナントは、通常のユーザーが認証する前に、管理者がデータコネクターを事前承認する必要があるように設定されています。この設定は、より厳格なセキュリティ管理を持つ組織でよく見られ、管理者が組織全体に代わってアプリケーションに権限を付与する必要があります。コネクターが事前承認されると、通常のユーザーはOAuth認証フローを進めて、自分のアカウントをMicrosoft OneDriveに接続できます。 ***直接ユーザー認証***の場合: 認証するには、以下の手順を完了してください: 1. Click here to connect to a new accountを選択します。 2. ポップアップウィンドウでOneDriveアカウントにログインし、Treasure Dataアプリへのアクセスを許可します。 ![](/assets/onedrive-export-integration-2024-02-15-4.e52bb99c17f12ba5d06ccc4cf53f699f21d4afe55c206efb66498f6ba9067629.94ab41d7.png) 1. TD Consoleにリダイレクトされます。最初のステップ(新しい接続を作成)を繰り返し、新しいOAuth接続を選択します。 ![](/assets/onedrive-export-integration-2024-02-15-5.6698e51c697a58f4fd2b8593f215c4e602db6c28901e5aa3d8db7579d2181796.94ab41d7.png) 1. 新しいOneDrive接続に名前を付けます。**Done**を選択します。 ![](/assets/onedrive-export-integration-2024-02-15-6.61e01a7c350d6b7fad5ce5ca35af63475e69c24ef4a762acb73753918ea708c0.94ab41d7.png) 1. **管理者による事前承認が必要**の場合、認証フローは似ていますが、管理者ユーザーが組織全体のコネクターを事前承認する最初のステップを実行する必要があります: ![](/assets/onedrive_connector_step1.75aaec87158336c3a0697d8382e733e60f29cca681d4aa9083e80dd971704a47.94ab41d7.png) このステップが完了すると、同じMicrosoftテナント内のすべての通常のユーザーは、同意付与画面を再度通過することなくコネクターを認証できます。 ### データ接続への出力結果を設定 このステップでは、クエリを作成または再利用します。クエリで、データ接続を設定します。 1. TD Consoleクエリエディターページに移動します。 2. データをエクスポートするために使用する予定のクエリにアクセスします。 3. 必要に応じて、クエリをコンパイルします。 ### 結果エクスポートターゲットを指定 1. Export Resultsを選択します。 2. 検索ボックスに接続名を入力して、OneDrive接続をフィルタリングして選択します。 3. すべての情報を編集します。 ![](https://docs.treasuredata.com/download/attachments/329605/biobidx02.png?version=1&modificationDate=1571073547589&api=v2)![](/assets/onedrive-export-integration-2024-02-15-7.0113e60b2fef12c2914eae61bf63317e7682c50adea3faaf2cc0f0bc921c38c5.94ab41d7.png) ![](/assets/onedrive-export-integration-2024-02-15-9.39082ce4c04b45d14044a7f2413ac140167edca83e554e9705536739b0deeed7.94ab41d7.png) ![](/assets/onedrive-export-integration-2024-02-15-10.dc4abfd70168c58ce57b3d23101ac723a80c758c03fb476b5a5a2a93f28cd268.94ab41d7.png)![](https://docs.treasuredata.com/download/attachments/329605/biobidx03.png?version=1&modificationDate=1571073613271&api=v2) ![](https://docs.treasuredata.com/download/attachments/329605/biobidx03.png?version=1&modificationDate=1571073613271&api=v2) OneDrive Account Plan: 2つのアカウントプランがあります: - Business: ドメイン、相対パス、およびフォルダパスを指定する必要があります。 - Personal: フォルダパスと、それが共有フォルダであるかどうかを指定する必要があります。 **Domain Name**: フォルダのドメイン。 **Relative Path**: OneDriveまたはSharePointサイト内のユーザーフォルダの相対パス。 **Folder Path**: OneDriveまたはSharePoint内のフォルダのディレクトリ。 **File Name**: 宛先ファイル名。マルチバイト文字は使用できません。 **This is a shared folder**: 誰かによって共有されているフォルダの場合に選択します **Format**: ファイル拡張子。 - **Encoders** 結果を圧縮するかどうかを示します。利用可能なオプション: None、gz、およびbzip2、暗号化PGP - **Public Key** 公開鍵は、アップロードする前にファイルを暗号化するために使用されます - **Key Identifier** ファイルを保護するために使用される暗号化サブキーのKey IDを指定します。マスターキーは暗号化プロセスから除外されます。 - **Amor** ASCII armorを使用するかどうか - **Compression Type** - Boxサーバーにアップロードするために暗号化する前に圧縮されるファイルを圧縮するために使用される圧縮アルゴリズムを定義します。 - **注意: 暗号化してアップロードする前に、ファイルを圧縮してください。復号化すると、ファイルは.gzや.bz2などの圧縮形式に戻ります。** **Header line**: エクスポートされたデータに列名をヘッダー行として含める場合に選択します。 **Null String**: NULL値を表すためにこの値を使用します。利用可能なオプション: - Default. ファイル形式CSVの場合、空の文字列('')がNull値を表すために使用され、TSV形式の場合、\Nが使用される場合に選択します。 - Empty string - \N NULL - null **End-of-line character**: 行末の文字。利用可能なオプションは、CRLF、LF、およびCRです **Quote Policy**: 利用可能なオプション: - ALL. すべての値が二重引用符("")で囲まれる場合に選択します。 - MINIMAL. 埋め込まれた引用符(")を含む値が、連続する引用符のペア("")で表示される場合に選択します。MINIMALクォートポリシーはCSVに適用されます。 - NONE. 埋め込まれた引用符のエスケープが適用されない場合に選択します。デフォルトでは、NONEはTSVファイル形式に適用されます。 **Max Retries**: OneDriveサーバーエラーまたはネットワークエラーによりエラーが発生した場合、アップロードを中止する前に試行される再試行の回数。 **Initial Retry Time Wait In Millies**: エラーが発生した場合、再試行の初期待機時間。各再試行後に待機時間を2倍にします。 **Max Retry Wait In Millies**: 再試行の上限待機時間。 ### (Optional) Schedule Query Export Jobs You can use Scheduled Jobs with Result Export to periodically write the output result to a target destination that you specify. Treasure Data's scheduler feature supports periodic query execution to achieve high availability. When two specifications provide conflicting schedule specifications, the specification requesting to execute more often is followed while the other schedule specification is ignored. For example, if the cron schedule is `'0 0 1 * 1'`, then the 'day of month' specification and 'day of week' are discordant because the former specification requires it to run every first day of each month at midnight (00:00), while the latter specification requires it to run every Monday at midnight (00:00). The latter specification is followed. #### Scheduling your Job Using TD Console 1. Navigate to **Data Workbench > Queries** 2. Create a new query or select an existing query. 3. Next to **Schedule**, select None. ![](/assets/image2021-1-15_17-28-51.f1b242f6ecc7666a0097fdf37edd1682786ec11ef80eff68c66f091bc405c371.0f87d8d4.png) 4. In the drop-down, select one of the following schedule options: ![](/assets/image2021-1-15_17-29-47.45289a1c99256f125f4d887e501e204ed61f02223fde0927af5f425a89ace0c0.0f87d8d4.png) | Drop-down Value | Description | | --- | --- | | Custom cron... | Review [Custom cron... details](#custom-cron-details). | | @daily (midnight) | Run once a day at midnight (00:00 am) in the specified time zone. | | @hourly (:00) | Run every hour at 00 minutes. | | None | No schedule. | #### Custom cron... Details ![](/assets/image2021-1-15_17-30-23.0f94a8aa5f75ea03e3fec0c25b0640cd59ee48d1804a83701e5f2372deae466c.0f87d8d4.png) | **Cron Value** | **Description** | | --- | --- | | `0 * * * *` | Run once an hour. | | `0 0 * * *` | Run once a day at midnight. | | `0 0 1 * *` | Run once a month at midnight on the morning of the first day of the month. | | "" | Create a job that has no scheduled run time. | ``` * * * * * - - - - - | | | | | | | | | +----- day of week (0 - 6) (Sunday=0) | | | +---------- month (1 - 12) | | +--------------- day of month (1 - 31) | +-------------------- hour (0 - 23) +------------------------- min (0 - 59) ``` The following named entries can be used: - Day of Week: sun, mon, tue, wed, thu, fri, sat. - Month: jan, feb, mar, apr, may, jun, jul, aug, sep, oct, nov, dec. A single space is required between each field. The values for each field can be composed of: | Field Value | Example | Example Description | | --- | --- | --- | | A single value, within the limits displayed above for each field. | | | | A wildcard `'*'` to indicate no restriction based on the field. | `'0 0 1 * *'` | Configures the schedule to run at midnight (00:00) on the first day of each month. | | A range `'2-5'`, indicating the range of accepted values for the field. | `'0 0 1-10 * *'` | Configures the schedule to run at midnight (00:00) on the first 10 days of each month. | | A list of comma-separated values `'2,3,4,5'`, indicating the list of accepted values for the field. | `0 0 1,11,21 * *'` | Configures the schedule to run at midnight (00:00) every 1st, 11th, and 21st day of each month. | | A periodicity indicator `'*/5'` to express how often based on the field's valid range of values a schedule is allowed to run. | `'30 */2 1 * *'` | Configures the schedule to run on the 1st of every month, every 2 hours starting at 00:30. `'0 0 */5 * *'` configures the schedule to run at midnight (00:00) every 5 days starting on the 5th of each month. | | A comma-separated list of any of the above except the `'*'` wildcard is also supported `'2,*/5,8-10'`. | `'0 0 5,*/10,25 * *'` | Configures the schedule to run at midnight (00:00) every 5th, 10th, 20th, and 25th day of each month. | 1. (Optional) You can delay the start time of a query by enabling the Delay execution. ### Execute the Query Save the query with a name and run, or just run the query. Upon successful completion of the query, the query result is automatically exported to the specified destination. Scheduled jobs that continuously fail due to configuration errors may be disabled on the system side after several notifications. (Optional) You can delay the start time of a query by enabling the Delay execution. ### クエリの例 ```sql SELECT email, first_name, last_name, region, age, gender, website FROM ( VALUES ('kate1@gmail.com', 'Kate', 'Tiny', 'Asia', '41 and above', 'female', 'google.com'), ('ronan@gmail.com', 'R', 'P', 'Americas', '21-30', 'male', 'google.com'), ('michelle@gmail.com', 'M', 'C', 'EMEA', '31-40', 'male', 'facebook.com')) tbl (email, first_name, last_name, region, age, gender, website); ``` ## Activate a Segment in Audience Studio You can also send segment data to the target platform by creating an activation in the Audience Studio. 1. Navigate to **Audience Studio**. 2. Select a parent segment. 3. Open the target segment, right-mouse click, and then select **Create Activation.** 4. In the **Details** panel, enter an Activation name and configure the activation according to the previous section on Configuration Parameters. 5. Customize the activation output in the **Output Mapping** panel. ![](/assets/ouput.b2c7f1d909c4f98ed10f5300df858a4b19f71a3b0834df952f5fb24018a5ea78.8ebdf569.png) - Attribute Columns - Select **Export All Columns** to export all columns without making any changes. - Select **+ Add Columns** to add specific columns for the export. The Output Column Name pre-populates with the same Source column name. You can update the Output Column Name. Continue to select **+ Add Columns**to add new columns for your activation output. - String Builder - **+ Add string** to create strings for export. Select from the following values: - String: Choose any value; use text to create a custom value. - Timestamp: The date and time of the export. - Segment Id: The segment ID number. - Segment Name: The segment name. - Audience Id: The parent segment number. 1. Set a **Schedule**. ![](/assets/snippet-output-connector-on-audience-studio-2024-08-28.a99525173709da1eb537f839019fa7876ffae95045154c8f2941b030022f792c.8ebdf569.png) - Select the values to define your schedule and optionally include email notifications. 1. Select **Create**. If you need to create an activation for a batch journey, review [Creating a Batch Journey Activation](/products/customer-data-platform/journey-orchestration/batch/creating-a-batch-journey-activation). ## OneDriveのワークフロー例 ```yaml timezone: UTC _export: td: database: sample_datasets +td-result-into-one-drive: td>: queries/sample.sql result_connection: your_connection_name result_settings: account_type: replace_existing: file_name: folder_path: domain_name: server_relative_path: is_shared_folder: replace_existing: format: compression: header_line: null_string: newline: quote_policy: ``` ## CLIを使用して接続を作成 ### 'td'コマンドのインストール [TD Toolbelt](https://toolbelt.treasuredata.com/)をインストールします。 ### オンデマンドジョブの場合 `td query`コマンドの`-r` / `--result`オプションを使用して、OneDrive結果出力先を追加します: ```bash td query -d test_db -w \ 'SELECT id, via FROM table1' \ --type presto -r \ '{"type":"one_drive", "refresh_token":"***","account_type":"personal","domain_name":null,"server_relative_path":null,"folder_path":"/abc","is_shared_folder":false,"file_name":"test_file","replace_existing":null,"format":"csv","compression":"","header_line":true,"null_string":"default","newline":"CRLF","quote_policy":null,"retry_count":"5","retry_initial_wait_millis":"1000","max_retry_wait_millis":"300000"}' ``` ### スケジュールされたジョブの場合 `td sched:create`コマンドの`-r` / `--result`オプションを使用して、OneDrive結果出力先を追加します: ```bash td sched:create every_6_mins "*/6 * * * *" \ -d test_db -w 'SELECT id, via FROM table1' \ --type presto \ -r '{{"type":"one_drive", "refresh_token":"***","account_type":"personal","domain_name":null,"server_relative_path":null,"folder_path":"/abc","is_shared_folder":false,"file_name":"test_file","replace_existing":null,"format":"csv","compression":"","header_line":true,"null_string":"default","newline":"CRLF","quote_policy":null,"retry_count":"5","retry_initial_wait_millis":"1000","max_retry_wait_millis":"300000"}' ``` ## よくある質問 ### Q: 誰かが共有してくれたフォルダにエクスポートするにはどうすればよいですか? - Business Account Plan: ドメイン名、サーバー相対パス、およびフォルダパスが必要です。ブラウザで「Shared With Me」タブに移動します: ![](/assets/onedrive-export-integration-2024-02-16-1.487b9d297283e909d41471521ccec5cca31829bc4b5d78410ea59c2d3b35d205.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid9.png?version=1&modificationDate=1571073704023&api=v2) 共有フォルダを開いて選択し、「Domain Name and Relative Path」で説明されているように、ドメイン名、相対パス、およびフォルダパスをメモします。 - Personal Account Plan フィールド: This is a shared folder(is_shared_folder)をtrueに設定し、画像に示されているように共有フォルダにドリルダウンする必要があります。 ![](/assets/onedrive-export-integration-2024-02-16-2.24a621c7207a88a36b48e57eba2864c57616d1ae1e87ce10eca318fbbbd150f0.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid11.png?version=1&modificationDate=1571073749755&api=v2) 共有フォルダf1を選択し、インポートするf2ターゲットフォルダに移動します。 ![](/assets/onedrive-export-integration-2024-02-16-3.381a619bddab7bc5cc8c8256b80daf25d92716205a181c41b94c01013e9e5661.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid23.png?version=1&modificationDate=1571073791643&api=v2) 次のようにフォルダパスパラメータを入力します: folder_path: /f1/f2(注意: フォルダf0はあなたと共有されていません) ![](https://docs.treasuredata.com/download/attachments/329605/blobid22.png?version=1&modificationDate=1571073857270&api=v2) ![](/assets/onedrive-export-integration-2024-02-16-4.8b141f69167af2e3de7ab111840604368a79b54029e71bf819c9b017bb01c1ca.94ab41d7.png) ### Q: SharePointコレクションにファイルをエクスポートするにはどうすればよいですか? エクスポートパスとして'/sites'と'/teams'('/personal'を含む)をサポートできます。他のパスはサポートされていません。 ## 付録 ### Domain NameとRelative Path Domain NameとURL Relative Pathは、個人フォルダ、SharePointサイトコレクション、および共有されているフォルダを含む、OneDrive businessアカウントプランにアクセスするために必要です。 ブラウザでインポートするフォルダを開きます。次に、次のようにDomain NameとRelative Pathを取得します: Personal folder ![](/assets/onedrive-export-integration-2024-02-16-5.9e65ea547031ab82716da26ea7cecbe17b6c35e3340c4b19db6be27685a74ca4.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid21.png?version=1&modificationDate=1571073936660&api=v2) SharePoint collection ![](/assets/onedrive-export-integration-2024-02-16-6.012162dafbe34f62c02b6aea2f14119679b8edc4b73ebd60a43cebaf80d7670d.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid20.png?version=1&modificationDate=1571073978438&api=v2) Folder shared with me ![](/assets/onedrive-export-integration-2024-02-16-7.71a0d0ce3bb8e15a6a594f73d2bb26d2aa0118b28a33b93c827399f348902f5f.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid19.png?version=1&modificationDate=1571074021351&api=v2) ### 独自のrefresh_tokenを取得 CLIからジョブを発行するには、client_id、client_secret、およびrefresh_tokenが必要です。 開発者アカウントを登録し、Azure App Registration Portal [https://portal.azure.com/#home](https://portal.azure.com/#home)に移動します。検索ボックスで、App Registrationを検索します。 ![](/assets/onedrive-export-integration-2024-02-16-8.114981469af1aae81498cbed67c324ad2d72f18edc938f7ef4ad77ff61634c32.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/mceclip10.png?version=1&modificationDate=1571074082780&api=v2) **New Registration**を選択します。 ![](/assets/onedrive-export-integration-2024-02-16-9.4172334b247b29de0785e61c569a05760717e69c533d3089ebab0c741820f545.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid24.png?version=1&modificationDate=1571074118808&api=v2) **App Name**を入力し、**Account Type**を選択し、**Redirect URI**を入力します。**Register**を選択します。 ![](/assets/onedrive-export-integration-2024-02-16-10.b54b3f836c17a6cabe0b924eeadf3a5b695bb4e30a6d4d09e8e05d3da6452222.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid30.png?version=2&modificationDate=1571074231212&api=v2) App Permissionsタブから、**Add a Permission**を選択します。 ![](/assets/onedrive-export-integration-2024-02-16-11.a7df581e89c75cbe7a059fa1be43e5d2e54fe5152c1ca65cdbcb68086f6616e9.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid26.png?version=1&modificationDate=1571074284279&api=v2) **Request API permissions**ウィンドウから、**Microsoft Graph** > **Delegated permissions**を選択し、次のように権限を追加します: ![](/assets/onedrive-export-integration-2024-02-16-12.9e4caf11312748f631748952ade54a2b61c8833902fa8c68ec4ad139c14f5f20.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/mceclip12.png?version=1&modificationDate=1571074367065&api=v2) Certificates & secretsタブから、**New client secret**を選択し、**Never**を選択して**Add**します。 新しいクライアントシークレットキーが次のように作成されます: ![](https://docs.treasuredata.com/download/attachments/329605/blobid28.png?version=1&modificationDate=1571074444839&api=v2) ![](/assets/onedrive-export-integration-2024-02-16-14.429ca3215073223a4bf08f7678236df04850d26501f28299f24c3a3c68a98b12.94ab41d7.png) Overviewタブから、次のようにクライアントIDを確認できます: ![](/assets/onedrive-export-integration-2024-02-16-15.b579e334b1bb2695089fc65a39e842ed7c6dfbfb163ae2f93341edad67c3bb50.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/blobid29.png?version=1&modificationDate=1571074491569&api=v2) このURLのclient_idを置き換えて、ブラウザで開きます。 ``` https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=xxxxxx&response_type=code&redirect_uri=http://localhost&response_mode=query&scope=offline_access files.readwrite.all openid sites.readwrite.all&state=1234 ``` **Permission Request**ウィンドウを受け入れます。 ![](https://docs.treasuredata.com/download/thumbnails/329605/image-20191023-183407.png?version=2&modificationDate=1571855710575&api=v2) アドレスバーからコードをコピーします: ![](/assets/onedrive-export-integration-2024-02-16-16.75b5312842112046e1cdc18590dcecd76cf3b25a99e60b5dedcf69500b232801.94ab41d7.png) ![](https://docs.treasuredata.com/download/attachments/329605/image-20191023-183611.png?version=1&modificationDate=1571855772661&api=v2) **code**、**client_id**、**client_secret**を置き換えて、[curl](https://curl.haxx.se/docs/manpage.md)コマンドを実行し、**access_token**と**refresh_token**を取得します。 ```bash curl -X POST \ https://login.microsoftonline.com/common/oauth2/v2.0/token \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'client_id={xxxxxx}&client_secret={xxxxx}&grant_type=authorization_code&scope=offline_access%20files.readwrite.all%20openid%20sites.readwrite.all&code={xxxxxx}&redirect_uri=http://localhost' ``` ### 要求される権限 個人アカウントを使用している場合、OneDrive Connectorは以下の権限を要求します: | Permission | Description | Note | | --- | --- | --- | | User.Read | ユーザーがアプリにサインインできるようにし、アプリがサインインしているユーザーのプロファイルを読み取れるようにします。また、サインインしているユーザーの基本的な会社情報をアプリが読み取れるようにします。 | | | Files.ReadWrite.AppFolder | アプリケーションのフォルダ内のファイルの読み取り、作成、更新、および削除をアプリに許可します。 | Application's folderは、「TreasureData OneDrive Connector」アプリ専用の特別なフォルダです。[What is an App Folder](https://docs.microsoft.com/en-us/onedrive/developer/rest-api/concepts/special-folders-appfolder?view=odsp-graph-online)を参照してください | | Files.ReadWrite.All | サインインしているユーザーがアクセスできるすべてのファイルの読み取り、作成、更新、および削除をアプリに許可します。 | インポートおよびエクスポートConnectorは同じクライアントアプリケーションを共有し、読み取り、作成、更新のみを実行しますが、ファイルは削除しません。 | | offline_access | 現在アプリを使用していない場合でも、アプリがユーザーデータを読み取って更新できるようにします。 | スケジュールインポート/エクスポートに使用 | Business/workアカウントは追加の権限を要求します | Permission | Description | Note | | --- | --- | --- | | Sites.ReadWrite.All | すべてのグループの読み取りと書き込み、すべてのサイトコレクション内のアイテムの編集または削除 | 読み取り、作成、更新のみを実行しますが、ファイルは削除しません。 | 削除権限はSites. ReadWrite. All権限の一部としてデフォルトで付与されますが、データコネクタはMicrosoft OneDrive上のファイルを削除しません。