A Microsoft file hosting and synchronization service.
Had the same issue on Samsung S10 and solved it.
Turned off sync photos via the Samsung account.
The same issue that OneDrive setting is greyed out and doesn't turn on.
Went to Settings>Accounts and backup>Accounts
Select your OneDrive account and turn on Media Sync. That seemed to turn on photo sync in the OneDrive app.