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.
The problem with this solution is that Media Sync defaults to turning itself off for some reason and therefore this does not work long term.