If you know how to clear the ODBC Driver 17’s token cache, please comment 🙂
Ran into the following error today and putting it here for searches as literally nothing came up:
Run-time error '-2147467259 (80004005)':
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]User option must be specified, if Authentication option is 'ActiveDirectoryInteractive'.
This was through an excel Macro, connecting to an Azure PaaS database. All other users were just getting prompted, but one kept having this issue.
We managed to ‘solve’ the issue by going into the macro properties and adding User IDemail@example.com to the connection string where firstname.lastname@example.org was the user’s actual UPN.