Completed the One Drive addition to storage but it never shows up. I do get the following error message which is alien to me. Can anyone decipher what it’s telling me? Sorry for lengthy log.
Any help would be greatly appreciated.
Logger: homeassistant.components.onedrive.config_flow
Source: components/onedrive/config_flow.py:87
Integration: onedrive (documentation, issues)
First occurred: 9:30:54 PM (1 occurrence)
Last logged: 9:30:54 PM
Failed to connect to OneDrive
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/onedrive/config_flow.py", line 87, in async_oauth_create_entry
self.approot = await self.client.get_approot()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/onedrive_personal_sdk/clients/client.py", line 43, in get_approot
result = await self._request_json(
^^^^^^^^^^^^^^^^^^^^^^^^^
HttpMethod.GET, f"{GRAPH_BASE_URL}/me/drive/special/approot"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/usr/local/lib/python3.14/site-packages/onedrive_personal_sdk/clients/base.py", line 82, in _request_json
response = await self._request(method, url, authorize, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/onedrive_personal_sdk/clients/base.py", line 67, in _request
raise AuthenticationError(response.status, await response.text())
onedrive_personal_sdk.exceptions.AuthenticationError: {"error":{"code":"accessDenied","message":"Access denied","innerError":{"date":"2026-08-20T01:30:53","request-id":"8730ea8d-7d0a-411b-8d95-6d7e4daf95b9","client-request-id":"8730ea8d-7d0a-411b-8d95-6d7e4daf95b9"}}}
That log shows Microsoft Graph returning accessDenied while Home Assistant calls the approot endpoint. Reauthorizing the OneDrive integration is the safest first check after rebuilding the instance.
Not sure why it takes me to Nabu Casa but if that’s not the right place it would explain why it’s not authorized. I did receive a notice from Microsoft telling me Home Assistant has been granted permission.
Once again, I appreciate your help! This has been so frustrating.
Can you log into your One Drive account, via your Browser ? ( With same credentials as you use in the Integration )
If that work, you could try to restart HA, and try again, in next step could be uninstall the integration , after HA restart, install the integrations again
The Microsoft approval notice means consent was granted, but the return to Nabu Casa suggests the OAuth callback isn’t reaching HA. The OneDrive flow likely needs a fresh authorization attempt.
But yes a “refresh” might solve it, or a restart (log out-login) of HA, or/and removal of previous logins/cached sessions in his Microsoft Account(Apps)
Yes, that error confirms HA reaches Microsoft Graph and gets accessDenied. The remaining problem is authorization, so a fresh consent attempt is still the safest first check.