> For the complete documentation index, see [llms.txt](https://docs.konnekt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.konnekt.io/troubleshooting/access-token-issues/failed-to-obtain-access-token-to-your-onedrive-account.md).

# Failed to obtain access token to your OneDrive account

{% hint style="info" %}
Can appear in KONNEKT 2.9.0 and higher.
{% endhint %}

### Problem

When trying to log in to KONNEKT, the error message "Failed to obtain an access token to your OneDrive account" appears.

<figure><img src="https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2Fjcr8IJEyB6lqQ8MdN0Ec%2Fimage.png?alt=media&amp;token=c49d87fe-9a2d-4adf-936f-d2be6a30d305" alt=""><figcaption></figcaption></figure>

### Cause

If you see this error, please check the sign-in logs in Microsoft Entra ID to see if there are any failed sign-ins.

Take a look at the active and interactive Sign-ins.

<figure><img src="https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2F8G5IDiLB0pqBAbStPyj9%2Fimage.png?alt=media&amp;token=e1c29de3-d57b-4e3e-a5d7-5c1b06393a58" alt=""><figcaption></figcaption></figure>

Check the "Device info" under Activity Details: Sign-ins

<figure><img src="https://2727108687-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M8zLVuKYctMIUr68_fs%2Fuploads%2FhAB2UKopfwds4W5X6ZRQ%2Fimage.png?alt=media&amp;token=3e8b6bc2-26ae-4ae1-8f42-beb2fadea985" alt=""><figcaption></figcaption></figure>

### Solution

This issue can be solved by changing the [browser engine](/configuration/system-settings/authentication-browser-engine.md) to authenticate the user.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.konnekt.io/troubleshooting/access-token-issues/failed-to-obtain-access-token-to-your-onedrive-account.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
