> ## Documentation Index
> Fetch the complete documentation index at: https://support.i.moneyforward.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OneDrive

> Instructions for integrating with Microsoft OneDrive. Once connected, Admina retrieves information about publicly shared files.

## Supported Features

<Badge color="blue">File Aggregation</Badge> <Badge color="blue">File Permission Management</Badge>

## OneDrive Integration

These are the instructions for integrating with Microsoft OneDrive. Once connected, Admina retrieves information about publicly shared files.

[About the external shared content management feature](/en/it-management/file-management/aakpi1r7gq-file-management)

<Info>
  * Account information is not retrieved.

  * Only the names and links of publicly shared files are retrieved. Data is not synced to Admina.

  * Viewing files in Admina requires the Admin role.

  * [About the Admin role](/en/it-management/settings/yne7fl2lcy-role-new)

  * This integration can also be used for SharePoint synchronization.
</Info>

## Prerequisites

<Info>
  Global administrator privileges are required for this setup.
</Info>

### Registering the Integration Application (Azure app portal)

1. Navigate to the [Azure app registration portal](https://go.microsoft.com/fwlink/?linkid=2083908), click \[**+ New registration**], and register an application with any name. Enter the values as shown in the image and click **Register**.

2. Click the application you created. From the left menu, go to **API permissions** > **+ Add a permission**, select **Microsoft Graph**, then select **Application permissions**.

3. Add the following 6 permissions:
   * `Application.Read.All`
   * `Directory.Read.All`
   * `Files.ReadWrite.All`
   * `Organization.Read.All`
   * `Sites.Read.All`
   * `User.Read.All`

4. After adding, click **Grant admin consent for Default Directory** and change the status to **Granted for Default Directory**.

5. **Issuing a Certificate**

   From the left menu, go to `Certificates & secrets` > `Client secrets` > `New client secret`, enter the following values, and click Add.

   * **Description**: The name for the key. Enter any name.
   * **Expires**: The expiration period for the API key. Select any duration. (If the key expires, the integration will error and you will need to reissue it.)

6. Copy the `Value` of the created key and save it (**the value is only displayed once, so be sure to copy it at this stage**). This will be used as the Admina client secret.

7. From the left menu, display **Overview** and confirm and save the following values:

   * `Directory (tenant) ID`: Used as the **Admina workspace key**.
   * `Application (client) ID`: Used as the **Admina client ID**.

   This completes the prerequisites.

## Integration Setup

1. In Admina's integrations screen, search for **OneDrive**.

2. Enter the following values and click \[**Connect**].

| Field             | Value                     |
| ----------------- | ------------------------- |
| **Workspace Key** | `Directory (tenant) ID`   |
| **Client ID**     | `Application (client) ID` |
| **Client Secret** | `Value`                   |

3. Once the OneDrive integration is successful, the **Files** tab will appear under Services, displaying information about shared files. (Synchronization may take some time depending on the number of files.)

4. If the integration does not complete successfully, click **Edit** on the status tab of the integrations screen and try connecting again.

   If the issue persists, please contact us via chat. For an overview of the OneDrive integration, visit the [integration page](http://admina.moneyforward.com/en/integrations/onedrive).

## Stopping Sharing Settings

You can change (stop) file sharing settings from Admina.

This allows you to immediately stop sharing of high-risk files.

[Box](/en/integrations/w1zy4zi45d-box)
