# OneDrive Integration

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FFHXSarIpILeVlXcPSvm2%2FOneDrive-Symbol.png?alt=media&#x26;token=1ce1acf9-62a6-4316-b104-b13cd2236385" alt="" width="188"><figcaption></figcaption></figure>

Connecting OneDrive with Resmo helps you organize and look into your files and user details. It's a better way to understand and monitor your files, improving the security of your digital assets.

### What does Resmo offer to OneDrive users?

* Monitor user behavior and access patterns for audit and security.
* Evaluate file metadata and usage to improve file management and accessibility.
* Oversee storage capacities and apply user or group storage restrictions.
* Control file permissions and configurations to maintain data safety and adhere to regulations.
* Set up custom security rules to automate audits
* Get real-time alerts of any anomalies via your favorite [notification channels](https://resmocom.gitbook.io/product/notifications/notification-channels) like Slack or Microsoft Teams.

### How does the integration work?

Resmo utilizes an API for initial data gathering and to accumulate current resources. After this first collection, it obtains real-time updates and modifications via webhook and consistent polling.

{% hint style="info" %}
**Key resources collected with the OneDrive API**

**User:** Retrieve user information, including account details, contact information, organizational data, license details, manager information, authentication details, and more. This allows you to manage user accounts, track user activity, and analyze user-related data within your OneDrive environment.

**Drive:** Access drive-specific details, such as drive type, name, owner information, quota, sharing permissions, and SharePoint identifiers. This resource enables you to manage and monitor drives, enforce storage limits, and gain insights into drive usage and collaboration patterns.

**Drive Item:** Retrieve information about individual files and folders within a drive, including details such as name, creation/modification timestamps, file properties, permissions, and sharing status. This allows you to manage files, track file activities, and analyze file metadata to understand usage patterns and access control.
{% endhint %}

**Available resources:**

{% embed url="<https://resources.resmo.com/onedrive>" %}

### Integration walkthrough

#### How to install

1. Go to Settings>Integrations on your Resmo account.
2. Find and click OneDrive on the Integrations page.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2F4NI3zFfLgKMJS3IT16XA%2Fresmo-onedrive.png?alt=media&#x26;token=d6caa4a8-a8a6-4fef-8272-71a7af728987" alt=""><figcaption></figcaption></figure>

3. Hit the Add Integration button.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FP6NFnIFLjhCFemIfFmNP%2Fadd-integration.png?alt=media&#x26;token=51eaad42-3d77-4197-a3f1-d974a24c0077" alt=""><figcaption></figcaption></figure>

4. Give the required access permissions.
5. Your OneDrive integration will be ready in no time!

#### How to uninstall

1. Open your OneDrive integration page from Settings>Integrations>OneDrive.
2. Click on the Connected Integrations tab and select the OneDrive integration you want to remove.
3. Click on the Disable button to temporarily pause the integration or Delete to permanently remove it.

<figure><img src="https://709615783-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FYrzxpMpCQh51K4O99y0o%2Fuploads%2FHScRmF8XJSPYNaylaLau%2Fonedrive-integration.png?alt=media&#x26;token=0684cd67-ba7f-4fd7-a49a-42d9f7fc412e" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://resmocom.gitbook.io/product/integrations/onedrive-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
