Aarhi
Aarhi

Reputation: 11

Elasticsearch OneDrive connector does not work with personal Azure Account

Is it possible to successfully use Elasticsearch OneDrive connector with a personal Azure Account?

I created my self-managed setup according to https://github.com/elastic/connectors/blob/main/scripts/stack/README.md and https://www.elastic.co/guide/en/elasticsearch/reference/current/es-connectors-onedrive.html. I was able to create and configure the connector correctly. However, when I tried to sync (both using Kibana UI and API call), I got 400 error in my logs. Upon digging deeper, I found the actual error message. So the connector code is effectively sending this request:

curl -X GET "https://graph.microsoft.com/v1.0/drives" -H "Authorization: Bearer \<token\>"

Message from error response:
"message": "Tenant does not have a SPO license."

After going through https://stackoverflow.com/a/55036124/6499833 and https://stackoverflow.com/a/66733599/6499833 it seems "You can only use Oauth2 Code Flow or Oauth2 Token Flow. Both are interactive approaches". So the conclusion I have drawn is that it is not possible to use a personal Azure account to sync a OneDrive connector in elasticsearch. Can someone please confirm this? If yes, then it should be highlighted in the documentation.

Upvotes: 0

Views: 13

Answers (0)

Related Questions