# User Consent for Establishing OneDrive Connection

To establish user consent for OneDrive connection, proceed as follows:

* On clicking “Sign in with Microsoft Account”, a window will appear asking the user (owner of the drive) to enter their credentials for consent or pick from existing credentials. (to be used in the Connector for data access)

<figure><img src="https://media.langstack.com/documentation/media/images/connector/onedriveconnector/signinwithmicrosoft1.png" alt=""><figcaption></figcaption></figure>

* After signing-in, the user will be prompted with a Consent Screen.&#x20;

<figure><img src="https://media.langstack.com/documentation/media/images/connector/onedriveconnector/odletappaccinfosignin.png" alt=""><figcaption></figcaption></figure>

* On clicking ‘Yes’, the window will automatically close and load the Authorization Code in Connector information. This Authorization Code will implicitly be used to generate Token to perform operations on OneDrive.


---

# 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://docs.langstack.com/welcome/in-depth-learning/connectors/onedrive-connector/user-consent-for-establishing-onedrive-connection.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.
