[Bug] Unable to link a OneDrive for Business for backup

Hi !
I’m unable to link my OneDrive for Business account whereas my OneDrive Personal works.

Environment

  • ZimaOS 1.6.2

  • OneDrive Personal (@msn.com): works

  • OneDrive for Business (Microsoft 365 E5): fails

OAuth authentication succeeds.

Callback:

GET /v2_1/files/cloud/auth/callback
200 OK

Exchange:

POST /v2_1/files/cloud/auth/exchange
500
cloud account username cannot be empty

Microsoft Graph user values:

DisplayName: FirstName LastName
Mail: name@mail.com
UserPrincipalName: name@mail.com
MailNickname: name

Exchange Online:

Alias: name

Therefore the username is not empty on the Microsoft side.

It’s working better than in 1.6.1, where I didn’t even get an error message. In 1.6.2, at least I get one now (attached, in french), “Cloud authentication failed.”

I just created an account to report a bug, but in any case, I’m really happy with ZimaOS, which I’ve been using for a few months now. Thanks to everyone for the great work! :smiling_face_with_sunglasses: