# 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.
